132 Commits

Author SHA1 Message Date
Ben Thomson
e85f98d0db Adjust "force" option for plugin:remove 2021-12-08 09:33:01 +08:00
Ben Thomson
e80fb59af4 Require explicit confirmations for CLI deletions
When removing a plugin via CLI or rolling back all DB migrations, we will now require the user to type out the plugin name (or "DELETE" for "winter:down") as a confirmation in order to proceed. This ensures that the user is well aware of what they are doing.

The "plugin:remove" command has now been added a "--no-rollback" option. When used, the plugin files will be removed, but the DB will remain untouched, allowing people to remove a plugin without losing their data.

Refs: https://github.com/wintercms/wn-translate-plugin/issues/13#issuecomment-988364253
2021-12-08 09:31:22 +08:00
Romain 'Maz' BILLOIR
345f02e8e1
Add winter:test command (#202)
Credit to @RomainMazB. Documented in https://github.com/wintercms/docs/pull/34. Proposed in #201.

Co-authored-by: Luke Towers <github@luketowers.ca>
Co-authored-by: Ben Thomson <ben@abweb.com.au>
Co-authored-by: Jack Wilkinson <me@jackwilky.com>
2021-10-21 14:23:25 -06:00
Marc Jauvin
4f43dfd7fc
Check overrides for parent locale when compiling language files (#242)
Credit to @mjauvin and @jaxwilko
2021-09-28 16:50:31 -06:00
Luke Towers
4f79b440c3 Alias winter:* commands to october:* commands for backwards compatibility 2021-04-03 08:39:45 -06:00
Ben Thomson
2835a0cc0b Remove unneeded property 2021-04-02 11:29:10 +08:00
Ben Thomson
a3d40d4067 Add description of some Winter commands, add attribution 2021-04-02 10:27:48 +08:00
Ben Thomson
906d4d65c0
Add support for version forks in "winter:version" command (#1) 2021-04-01 09:05:15 -06:00
Luke Towers
2e511f7b8f
Add support for configuring the default backend locale & timezone in winter:install (#12)
Related: octobercms/october#5366
2021-03-22 15:59:10 -06:00
Marc Jauvin
4e2fa8d047
Implement artisan winter:util purge orphans (#44)
Credit to @mjauvin
2021-03-22 14:36:05 -06:00
Daniel Hawton
d305aab043
Rebrand winter:install (#38)
Fixes #37
2021-03-12 13:43:40 -06:00
Luke Towers
e57397f5fc Rebrand winter:install 2021-03-12 13:33:36 -06:00
Luke Towers
1e8cfb47af Manual comb through and rebrand following up the bulk patch rebrand 2021-03-10 15:25:57 -06:00
Luke Towers
cfa763b714 Initial rebrand commit generated from the 1.0 rebrand branch patch file 2021-03-10 15:02:53 -06:00
Luke Towers
b2b7978aff Add default value for winter:install database selection question.
Refs: 3b650b7ebd. Thanks to @hune2021.
2021-03-06 02:50:30 -06:00
Luke Towers
5591e3fa94 Add support for choosing the default backend locale from the october:install command.
Requested by @mkinternet
2020-12-18 13:56:28 -06:00
Marc Jauvin
032b8554b3
Register plugin after installation via plugin:install CLI (#5386)
The web based Updates controller avoids this issue by completing the migration step as a separate AJAX request from the step where the plugin files are installed, thus allowing for the plugins to be registered by the PluginManager prior to migrations being run. As the plugin:install CLI command runs in a single request, it is necessary to manually register the newly installed plugin prior to running any migrations for the plugin so that any dependencies introduced by the plugin are guaranteed to be available prior to plugin code being run.
2020-12-08 12:48:26 -06:00
hackolein
96fd2ec657
Match paths sent to theme:sync more exactly (#5334)
`artisan theme:sync --target=database --force --paths=layouts/,pages/,partials/`

But at the moment it also synchronizes paths that should not be synchronized. For example: `content/static-pages/`. Because here the pattern applies to `pages/`.

The fix is that the pattern starts at the beginning of the line.

Co-authored-by: Heiko Böhme <hboehme@menadwork.com>
2020-11-20 03:02:10 -06:00
Ben Thomson
216b0d6004
Remove errors from october:fresh and indicate which demo files were moved
Follow-up work to fc9d6233a8da738b5b8bbdf2fb7e6fd67da12b66.
2020-09-14 08:09:00 +08:00
Marc Jauvin
fc9d6233a8
Allow october:fresh to remove remove the demo plugin even when the demo theme has already been removed (#5275) 2020-09-13 16:51:09 -06:00
Ben Thomson
b251867f56
Use path.config binding in "october:env" to allow unit test to work 2020-09-09 12:38:48 +08:00
Ben Thomson
5bceda9496
Add "changes" option for "october:version" command.
Will include a list of added/modified/removed files when detecting the October CMS build.
2020-09-03 11:48:35 +08:00
Ben Thomson
4141646105
Implement improved "set build" replacement (#5087)
This change implements an improved "set build" utility through the "october:version" Artisan command that, instead of checking the October CMS server for the latest build, checks the module files against a source manifest kept on GitHub.

This check allows us to accurately determine the build based on the module files in the October CMS installation, and can even detect versions if the module files are modified (except in the cases of extreme modification).

An additional utility has been implemented, "october:manifest", which will build the manifest JSON file in order to provide the maintainers with a way of generating this manifest file as required.

Replaces #4615.
2020-09-02 14:48:08 +08:00
Luke Towers
c1c728e413
Merge pull request #5231 from octobercms/wip/image-resizing
Implement core support for `| resize(width, height, options)` filter
2020-08-21 18:01:47 -06:00
Luke Towers
7fde924ec1 Finish implementing october:util purge uploads command.
Only works for uploads stored on the local disk right now, support for remote disks may be added in the future at some point.

Replaces #4518 & #4029. Credit to @LukeTowers, @BennoThommo, & @austinderrick.
2020-08-15 00:33:08 -06:00
Luke Towers
288918a7d7 Finished initial implementation of resizer for all supported input image sources, added the storage/app/resized directory to the mirror command 2020-08-14 15:39:30 -06:00
Ben Thomson
5c8f567323
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-05-18 08:35:03 +08:00
Marc Jauvin
15e4e53901
fix typos in halcyon (#5066) 2020-05-05 11:12:45 -06:00
Luke Towers
e78d5fe2bf Merge branch 'develop' into wip/laravel-6
# Conflicts:
#	modules/system/classes/UpdateManager.php
#	modules/system/classes/VersionManager.php
2020-04-29 16:58:58 -06:00
Calum
1c621ae4c9
Support git submodules in october:util git pull (#5047) 2020-04-19 19:56:19 -06:00
Kallef Alexandre
b4c65e9feb
Added plugin:rollback command (#4389) 2020-04-11 09:46:22 -06:00
Luke Towers
44cc5d371b Merge branch 'develop' into wip/laravel-6 2020-04-04 02:32:16 -06:00
Luke Towers
e4571c3dd4
Add usingSource method to active datasource (#5017)
This allows the `theme:sync` command to properly sync to specified targets.

Fixes #4887. Replaces #4935. Credit to @bennothommo for the initial implementation.
2020-04-01 18:12:50 +08:00
Ben Thomson
98a2fb150f
Merge remote-tracking branch 'origin/develop' into wip/laravel-6 2020-03-29 15:45:31 +08:00
Ben Thomson
a92597064b
october:env command fixes
- Adds quotes around all strings inserted into config files, preventing them from being interpreted as constants.
- Changed all private methods in OctoberEnv.php to protected.
- Updated test to check some config files for expected changes.
2020-03-29 15:42:46 +08:00
Ben Thomson
ef606c76c5
Merge branch 'develop' into wip/laravel-6 2020-03-27 14:52:15 +08:00
Ben Thomson
6dbfdd7e65
Allow quotes to be correctly handled by october:env (#4986)
This fix will apply quotes around string environment variables which contain either a single, or double, quote as well as any variables with a hash symbol - escaping any double-quotes encountered. When artisan october:env is run, this should correctly transfer all configuration values from the config files to the .env file.

Fixes #4979.
2020-03-26 23:40:01 +08:00
Samuel Georges
73b551cf04 Switch to October Rain assetic 2020-02-27 20:07:42 +11:00
Ben Thomson
5e4916148f Revert Laravel Dusk changes (#4919)
The Browser tests will be made into a RainLab plugin. (https://github.com/rainlab/dusk-plugin)
2020-02-07 16:59:39 +08:00
Ben Thomson
65c3a88179
[Laravel 6] Add support for Laravel Dusk tests (#4919) 2020-02-03 12:21:04 +08:00
Ben Thomson
5d3d4ad0b2
Merge branch 'develop' into wip/laravel-5.9 2020-01-18 21:00:40 +08:00
Samuel Georges
4fb897ff12 Fixes bug showing the entered password 2019-12-24 18:10:17 +11:00
Samuel Georges
2b45c3f322 Simplify wording to sound more DOS-era robotic 2019-12-24 17:43:25 +11:00
Ben Thomson
a66310bd56
Allow changing of Backend user passwords through CLI. (#4836)
Adds an Artisan command "october:passwd" to change the password of a Backend User through CLI. This command may only be run through CLI - it will not work if called through a web handler.

Refs: #3521, #4835. Docs: 1f3bfc719e
2019-12-23 08:19:15 +08:00
Ben Thomson
7e3136564f
Merge branch 'develop' into wip/laravel-5.9 2019-11-21 23:18:25 +08:00
Ben Thomson
07d74ebb1b Fix sync command, minor cleanup (#4645)
Fixes #4642, adds some unit testing for the AutoDatasource. Credit to @bennothommo
2019-10-09 08:54:13 -06:00
Dan Harrin
9521dd795c Minor Formatting Corrections in Usage Comments (#4541)
Credit to @DanHarrin
2019-08-15 09:14:54 -06:00
Ben Thomson
a59d3b83eb Code quality clean up (#4449)
Credit to @bennothommo
2019-07-18 08:50:37 -06:00
Luke Towers
2fc515e2a5 Updated environment file generation command to match what laravel is calling the variable now 2019-06-12 02:34:28 -06:00
Ben Thomson
8768e0a54c
Support environment variable for database templates 2019-06-06 21:22:05 +08:00