wp-studio 1.7.8-beta2 → 1.7.8-beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -0
- package/assets/demo.gif +0 -0
- package/dist/cli/{_events-BRGCap7g.mjs → _events-C60cNJ1W.mjs} +1 -1
- package/dist/cli/{index-9Oz-0bqF.mjs → index-D9syEMMz.mjs} +4 -4
- package/dist/cli/{index-CT4S2538.mjs → index-Ru6CUP6w.mjs} +24 -12
- package/dist/cli/{login-D4E3GoXe.mjs → login-C3QlGVbr.mjs} +1 -1
- package/dist/cli/{logout-DE-RoshK.mjs → logout-B63eZwJZ.mjs} +1 -1
- package/dist/cli/main.mjs +2 -1
- package/dist/cli/{resume-DLoXmzNG.mjs → resume-DQT_MK6A.mjs} +1 -1
- package/dist/cli/{set-B0L-QiXT.mjs → set-C805heQS.mjs} +1 -1
- package/dist/cli/{set-B8YYUENH.mjs → set-CjTbueyB.mjs} +1 -1
- package/dist/cli/{status-DEOAA0yx.mjs → status-SnKm1rRP.mjs} +1 -1
- package/dist/cli/{wp-CobSX6C6.mjs → wp-D0HZdudM.mjs} +1 -1
- package/dist/cli/wp-files/sqlite-command/composer.json +4 -3
- package/dist/cli/wp-files/sqlite-command/composer.lock +132 -80
- package/dist/cli/wp-files/sqlite-command/vendor/autoload.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_classmap.php +58 -70
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_namespaces.php +1 -0
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_psr4.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_real.php +5 -5
- package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_static.php +78 -80
- package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.json +104 -49
- package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.php +29 -16
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/CHANGELOG.md +103 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/Comparator.php +62 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Finder.php +851 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Gitignore.php +91 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Glob.php +116 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SortableIterator.php +115 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/LICENSE +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/README.md +14 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/SplFileInfo.php +80 -0
- package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/composer.json +31 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/.gitattributes +8 -0
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/LICENSE +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/README.md +76 -0
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/composer.json +6 -16
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/src/Mustache/Autoloader.php +88 -0
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/AbstractCache.php +7 -15
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/FilesystemCache.php +15 -20
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/NoopCache.php +4 -8
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache.php +7 -10
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Compiler.php +87 -144
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Context.php +19 -23
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Engine.php +134 -251
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/InvalidArgumentException.php +2 -6
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/LogicException.php +2 -6
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/RuntimeException.php +2 -6
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/SyntaxException.php +8 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownFilterException.php +7 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownHelperException.php +7 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownTemplateException.php +7 -7
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception.php +5 -4
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/HelperCollection.php +17 -22
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/LambdaHelper.php +8 -28
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ArrayLoader.php +9 -12
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/CascadingLoader.php +15 -18
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/FilesystemLoader.php +18 -24
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/InlineLoader.php +13 -19
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/MutableLoader.php +7 -4
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ProductionFilesystemLoader.php +16 -23
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/StringLoader.php +4 -8
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader.php +7 -8
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/AbstractLogger.php +26 -22
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/StreamLogger.php +20 -25
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger.php +37 -13
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Parser.php +93 -100
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source/FilesystemSource.php +7 -11
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source.php +5 -4
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Template.php +32 -39
- package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Tokenizer.php +29 -33
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.actrc +3 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.gitattributes +6 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.mailmap +234 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/README.md +4 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/VERSION +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/CHANGELOG.md +0 -65
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/README.md +1 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem +372 -315
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256 +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json +5 -7
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php +18 -20
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Requests.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Response/Headers.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Curl.php +1 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Fsockopen.php +0 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php +0 -12
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/FilteredIterator.php +2 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/composer.json +13 -30
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/dependencies.yml +6 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/manifest.json +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Autoloader.php +2 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/AutoloaderStep.php +1 -10
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php +2 -20
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php +3 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php +4 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php +3 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeContexts.php +0 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php +3 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/{RegisterShutdownHandler.php → LoadDispatcher.php} +4 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadRequiredCommand.php +5 -9
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadUtilityFunctions.php +0 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php +6 -149
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Configurator.php +49 -202
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Admin.php +21 -113
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Auto.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php +1 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Frontend.php +1 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php +26 -63
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php +9 -19
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php +19 -284
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php +5 -17
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Exception/NonExistentKeyException.php +3 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php +54 -30
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php +3 -7
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php +2 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php +3 -8
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Signup.php +1 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php +4 -12
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php +1 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/FileCache.php +33 -135
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Formatter.php +57 -221
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Inflector.php +4 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/CSV.php +1 -6
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Query.php +1 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Table.php +1 -7
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php +0 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Base.php +0 -15
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php +3 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Regular.php +3 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php +0 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php +7 -40
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/RequestsLibrary.php +1 -4
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php +234 -795
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisParser.php +26 -116
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisValidator.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Traverser/RecursiveDataStructureTraverser.php +26 -69
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/UpgraderSkin.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpHttpCacheManager.php +5 -67
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpOrgApi.php +3 -3
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/boot-fs.php +2 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/bootstrap.php +2 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/class-wp-cli.php +62 -311
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Alias_Command.php +60 -292
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php +1 -1
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php +31 -191
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/Help_Command.php +35 -177
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/config-spec.php +4 -28
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils-wp.php +47 -81
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils.php +200 -512
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-cli.php +2 -2
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-settings-cli.php +465 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man-params.mustache +4 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man.mustache +0 -8
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ArgValidationTest.php +74 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/CommandFactoryTest.php +420 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ConfiguratorTest.php +87 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/DocParserTest.php +213 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ExtractorTest.php +293 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/FileCacheTest.php +207 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/HelpTest.php +119 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/InflectorTest.php +37 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/LoggingTest.php +124 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ProcessTest.php +30 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/SynopsisParserTest.php +194 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/UtilsTest.php +1092 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WPCLITest.php +16 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Iterators/CSVTest.php +109 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Traversers/RecursiveDataStructureTraverserTest.php +151 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/WpOrgApiTest.php +166 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WpVersionCompareTest.php +78 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/bootstrap.php +17 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class-win.php +70 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php +70 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php +19 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2 +0 -0
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/mock-requests-transport.php +34 -0
- package/dist/cli/wp-files/sqlite-command/version +1 -1
- package/package.json +4 -3
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
- /package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/{codecov.yml → tests/data/expand_globs/bar.ab1} +0 -0
package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php
DELETED
|
@@ -1,329 +0,0 @@
|
|
|
1
|
-
<?php
|
|
2
|
-
|
|
3
|
-
namespace WP_CLI;
|
|
4
|
-
|
|
5
|
-
use WP_CLI;
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Handles fatal errors to detect plugin/theme issues and suggest workarounds.
|
|
9
|
-
*
|
|
10
|
-
* This handler hooks into WordPress's fatal error handler to provide
|
|
11
|
-
* helpful suggestions to the user when plugins or themes cause errors.
|
|
12
|
-
*
|
|
13
|
-
* @package WP_CLI
|
|
14
|
-
*/
|
|
15
|
-
class ShutdownHandler {
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Register the error message filter.
|
|
19
|
-
*/
|
|
20
|
-
public static function register() {
|
|
21
|
-
// Ensure WordPress's fatal error handler is always enabled for WP-CLI
|
|
22
|
-
WP_CLI::add_wp_hook(
|
|
23
|
-
'wp_fatal_error_handler_enabled',
|
|
24
|
-
static function () {
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
);
|
|
28
|
-
|
|
29
|
-
// Hook into the error message filter to add our suggestions
|
|
30
|
-
WP_CLI::add_wp_hook(
|
|
31
|
-
'wp_php_error_message',
|
|
32
|
-
[ __CLASS__, 'filter_error_message' ],
|
|
33
|
-
10,
|
|
34
|
-
2
|
|
35
|
-
);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Filter the PHP error message to add plugin/theme skip suggestions.
|
|
40
|
-
*
|
|
41
|
-
* @param string $message Error message.
|
|
42
|
-
* @param array{type: int, message: string, file: string, line: int} $error Error information from error_get_last().
|
|
43
|
-
* @return string Filtered error message.
|
|
44
|
-
*/
|
|
45
|
-
public static function filter_error_message( $message, $error ) {
|
|
46
|
-
if ( ! is_array( $error ) || ! isset( $error['file'], $error['line'], $error['message'] ) ) {
|
|
47
|
-
return wp_strip_all_tags( $message );
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
$message = 'There has been a critical error on this website.';
|
|
51
|
-
|
|
52
|
-
$message .= "\n\n" . wp_strip_all_tags( $error['message'] );
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @var string $file
|
|
56
|
-
*/
|
|
57
|
-
$file = $error['file'];
|
|
58
|
-
|
|
59
|
-
$plugin = self::identify_plugin( $file );
|
|
60
|
-
$theme = self::identify_theme( $file );
|
|
61
|
-
$skip = '--skip-plugins --skip-themes';
|
|
62
|
-
if ( $plugin ) {
|
|
63
|
-
$message .= "\n\nThis error may have been caused by the plugin {$plugin}.";
|
|
64
|
-
$message .= "\nTo skip this plugin, run the command again with:";
|
|
65
|
-
$message .= "\n --skip-plugins={$plugin}";
|
|
66
|
-
|
|
67
|
-
$skip = [ 'skip-plugins' => $plugin ];
|
|
68
|
-
} elseif ( 'functions.php' === $theme ) {
|
|
69
|
-
$message .= "\n\nAn unexpected functions.php file in the themes directory may have caused this internal server error.";
|
|
70
|
-
|
|
71
|
-
// This error cannot be skipped with `--skip-themes`.
|
|
72
|
-
return $message;
|
|
73
|
-
} elseif ( $theme ) {
|
|
74
|
-
$message .= "\n\nThis error may have been caused by the theme {$theme}.";
|
|
75
|
-
$message .= "\nTo skip this theme, run the command again with:";
|
|
76
|
-
$message .= "\n --skip-themes={$theme}";
|
|
77
|
-
|
|
78
|
-
$skip = [ 'skip-themes' => $theme ];
|
|
79
|
-
} else {
|
|
80
|
-
$message .= "\n\nThis error may have been caused by a theme or plugin.";
|
|
81
|
-
$message .= "\nTo skip all plugins and themes, run the command again with:";
|
|
82
|
-
$message .= "\n --skip-plugins --skip-themes";
|
|
83
|
-
$skip = [
|
|
84
|
-
'skip-plugins' => true,
|
|
85
|
-
'skip-themes' => true,
|
|
86
|
-
];
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
if ( ! self::should_handle_error_rerun() ) {
|
|
90
|
-
return $message;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
WP_CLI::add_wp_hook(
|
|
94
|
-
'wp_die_handler',
|
|
95
|
-
function () use ( $skip ) {
|
|
96
|
-
return static function ( $wp_error ) use ( $skip ) {
|
|
97
|
-
WP_CLI::error( $wp_error->get_error_message(), false );
|
|
98
|
-
|
|
99
|
-
self::prompt_and_rerun( $skip );
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
return $message;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* Identify the plugin causing the error.
|
|
109
|
-
*
|
|
110
|
-
* @param string $file File path where error occurred.
|
|
111
|
-
* @return string|null Plugin slug, or null if not a plugin error.
|
|
112
|
-
*/
|
|
113
|
-
private static function identify_plugin( $file ) {
|
|
114
|
-
// Normalize path separators for consistent matching
|
|
115
|
-
$file = Path::normalize( $file );
|
|
116
|
-
|
|
117
|
-
// Use WordPress constants if available for more accurate path detection
|
|
118
|
-
if ( defined( 'WP_PLUGIN_DIR' ) ) {
|
|
119
|
-
$slug = self::extract_component_slug( $file, WP_PLUGIN_DIR );
|
|
120
|
-
if ( $slug ) {
|
|
121
|
-
return $slug;
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
if ( defined( 'WPMU_PLUGIN_DIR' ) ) {
|
|
126
|
-
$slug = self::extract_component_slug( $file, WPMU_PLUGIN_DIR );
|
|
127
|
-
if ( $slug ) {
|
|
128
|
-
return $slug;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
// Fallback to pattern matching if constants are not available
|
|
133
|
-
if ( preg_match( '#/wp-content/(?:mu-)?plugins/([^/]+)/#', $file, $matches ) ) {
|
|
134
|
-
return $matches[1];
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Check for direct single-file plugins
|
|
138
|
-
if ( preg_match( '#/wp-content/(?:mu-)?plugins/([^/]+)\\.php$#', $file, $matches ) ) {
|
|
139
|
-
return $matches[1];
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
return null;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Identify the theme causing the error.
|
|
147
|
-
*
|
|
148
|
-
* @param string $file File path where error occurred.
|
|
149
|
-
* @return string|null Theme slug, or null if not a theme error.
|
|
150
|
-
*/
|
|
151
|
-
private static function identify_theme( $file ) {
|
|
152
|
-
// Normalize path separators for consistent matching
|
|
153
|
-
$file = Path::normalize( $file );
|
|
154
|
-
|
|
155
|
-
// Use get_theme_root() if available for more accurate path detection
|
|
156
|
-
if ( function_exists( 'get_theme_root' ) ) {
|
|
157
|
-
$slug = self::extract_theme_slug( $file, get_theme_root() );
|
|
158
|
-
if ( $slug ) {
|
|
159
|
-
return $slug;
|
|
160
|
-
}
|
|
161
|
-
} elseif ( defined( 'WP_CONTENT_DIR' ) ) {
|
|
162
|
-
// Fallback to WP_CONTENT_DIR/themes if get_theme_root() is not available
|
|
163
|
-
$slug = self::extract_theme_slug( $file, WP_CONTENT_DIR . '/themes' );
|
|
164
|
-
if ( $slug ) {
|
|
165
|
-
return $slug;
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
// Fallback to pattern matching if constants/functions are not available
|
|
170
|
-
if ( preg_match( '#/wp-content/themes/([^/]+)/#', $file, $matches ) ) {
|
|
171
|
-
return $matches[1];
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Check for themes/functions.php directly in the themes directory
|
|
175
|
-
if ( preg_match( '#/wp-content/themes/(functions\\.php)$#', $file, $matches ) ) {
|
|
176
|
-
return $matches[1];
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
return null;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Extract component slug from a file path given a base directory.
|
|
184
|
-
*
|
|
185
|
-
* @param string $file File path where error occurred.
|
|
186
|
-
* @param string $base_dir Base directory path.
|
|
187
|
-
* @return string|null Component slug, or null if not found.
|
|
188
|
-
*/
|
|
189
|
-
private static function extract_component_slug( $file, $base_dir ) {
|
|
190
|
-
$file = Path::normalize( $file );
|
|
191
|
-
$base_dir = Path::normalize( $base_dir );
|
|
192
|
-
|
|
193
|
-
if ( 0 === strpos( $file, $base_dir . '/' ) ) {
|
|
194
|
-
$relative = substr( $file, strlen( $base_dir ) + 1 );
|
|
195
|
-
$parts = explode( '/', $relative );
|
|
196
|
-
if ( ! empty( $parts[0] ) ) {
|
|
197
|
-
// For components in subdirectories, return the directory name
|
|
198
|
-
// For single-file components, return the filename without .php
|
|
199
|
-
return false !== strpos( $parts[0], '.php' ) ? basename( $parts[0], '.php' ) : $parts[0];
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return null;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
/**
|
|
206
|
-
* Extract theme slug from a file path given a theme directory.
|
|
207
|
-
*
|
|
208
|
-
* @param string $file File path where error occurred.
|
|
209
|
-
* @param string $theme_dir Theme directory path.
|
|
210
|
-
* @return string|null Theme slug, or null if not found.
|
|
211
|
-
*/
|
|
212
|
-
private static function extract_theme_slug( $file, $theme_dir ) {
|
|
213
|
-
$file = Path::normalize( $file );
|
|
214
|
-
$theme_dir = Path::normalize( $theme_dir );
|
|
215
|
-
|
|
216
|
-
if ( 0 === strpos( $file, $theme_dir . '/' ) ) {
|
|
217
|
-
$relative = substr( $file, strlen( $theme_dir ) + 1 );
|
|
218
|
-
$parts = explode( '/', $relative );
|
|
219
|
-
if ( ! empty( $parts[0] ) ) {
|
|
220
|
-
return $parts[0];
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return null;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
/**
|
|
227
|
-
* Check if we should setup the error rerun handler.
|
|
228
|
-
*
|
|
229
|
-
* @return bool
|
|
230
|
-
*/
|
|
231
|
-
private static function should_handle_error_rerun() {
|
|
232
|
-
// Check environment variable WP_CLI_ERROR_RERUN
|
|
233
|
-
$error_rerun = Utils\get_env_or_config( 'WP_CLI_ERROR_RERUN' );
|
|
234
|
-
|
|
235
|
-
if ( false !== $error_rerun ) {
|
|
236
|
-
return 'no' !== $error_rerun;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
// Default: handle the error rerun (prompt)
|
|
240
|
-
return true;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
/**
|
|
244
|
-
* Prompt the user to rerun the command with the skip flag.
|
|
245
|
-
*
|
|
246
|
-
* @param array<string, bool|string> $skip Skip flag(s) to append.
|
|
247
|
-
*/
|
|
248
|
-
private static function prompt_and_rerun( $skip ) {
|
|
249
|
-
// Get environment variable to check default behavior
|
|
250
|
-
$error_rerun = Utils\get_env_or_config( 'WP_CLI_ERROR_RERUN' );
|
|
251
|
-
|
|
252
|
-
// If set to 'yes', automatically rerun without prompting
|
|
253
|
-
if ( 'yes' === $error_rerun ) {
|
|
254
|
-
self::rerun_with_skip( $skip );
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
// If set to 'no', don't prompt or rerun at all
|
|
259
|
-
if ( 'no' === $error_rerun ) {
|
|
260
|
-
return;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
// 'prompt' or default behavior
|
|
264
|
-
$skip_string = self::get_skip_string( $skip );
|
|
265
|
-
|
|
266
|
-
try {
|
|
267
|
-
WP_CLI::confirm( "\nWould you like to run the command again with $skip_string?" );
|
|
268
|
-
self::rerun_with_skip( $skip );
|
|
269
|
-
} catch ( \WP_CLI\ExitException $e ) {
|
|
270
|
-
// User declined or Ctrl+C - exit gracefully
|
|
271
|
-
WP_CLI::line( 'Command not rerun.' );
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
/**
|
|
276
|
-
* Return a formatted --skip-[...] string.
|
|
277
|
-
*
|
|
278
|
-
* @param array<string, bool|string> $skip Skip flag(s) to append.
|
|
279
|
-
* @return string
|
|
280
|
-
*/
|
|
281
|
-
private static function get_skip_string( $skip ) {
|
|
282
|
-
return implode(
|
|
283
|
-
' ',
|
|
284
|
-
array_map(
|
|
285
|
-
static function ( $key, $value ) {
|
|
286
|
-
return is_bool( $value ) ? "--$key" : "--$key=$value";
|
|
287
|
-
},
|
|
288
|
-
array_keys( $skip ),
|
|
289
|
-
array_values( $skip )
|
|
290
|
-
)
|
|
291
|
-
);
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Rerun the current command with the skip flag.
|
|
296
|
-
*
|
|
297
|
-
* @param array<string, bool|string> $skip Skip flag(s) to append.
|
|
298
|
-
*/
|
|
299
|
-
private static function rerun_with_skip( $skip ) {
|
|
300
|
-
$runner = WP_CLI::get_runner();
|
|
301
|
-
|
|
302
|
-
if ( ! $runner ) {
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
$args = $runner->arguments;
|
|
307
|
-
$assoc_args = $runner->assoc_args;
|
|
308
|
-
|
|
309
|
-
foreach ( $skip as $skip_flag => $slug ) {
|
|
310
|
-
if ( isset( $assoc_args[ $skip_flag ] ) && ! is_bool( $slug ) ) {
|
|
311
|
-
// Add slug to existing skip list.
|
|
312
|
-
$existing = $assoc_args[ $skip_flag ];
|
|
313
|
-
$assoc_args[ $skip_flag ] .= ',' . $slug;
|
|
314
|
-
} else {
|
|
315
|
-
$assoc_args[ $skip_flag ] = $slug;
|
|
316
|
-
}
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
$skip_string = self::get_skip_string( $skip );
|
|
320
|
-
|
|
321
|
-
WP_CLI::line( "\nRerunning command with {$skip_string}...\n" );
|
|
322
|
-
|
|
323
|
-
try {
|
|
324
|
-
WP_CLI::run_command( $args, $assoc_args );
|
|
325
|
-
} catch ( \Exception $e ) {
|
|
326
|
-
WP_CLI::error( $e->getMessage() );
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
}
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"title": "WP-CLI Configuration Schema",
|
|
4
|
-
"description": "JSON Schema for validating wp-cli.yml configuration files",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"$schema": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "JSON Schema reference"
|
|
10
|
-
},
|
|
11
|
-
"path": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "Path to the WordPress files.",
|
|
14
|
-
"default": null
|
|
15
|
-
},
|
|
16
|
-
"ssh": {
|
|
17
|
-
"type": "string",
|
|
18
|
-
"description": "Perform operation against a remote server over SSH (or a container using scheme of \"docker\", \"docker-compose\", \"docker-compose-run\", \"vagrant\").",
|
|
19
|
-
"default": null
|
|
20
|
-
},
|
|
21
|
-
"http": {
|
|
22
|
-
"type": "string",
|
|
23
|
-
"format": "uri",
|
|
24
|
-
"description": "Perform operation against a remote WordPress installation over HTTP.",
|
|
25
|
-
"default": null
|
|
26
|
-
},
|
|
27
|
-
"url": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"format": "uri",
|
|
30
|
-
"description": "Pretend request came from given URL. In multisite, this argument is how the target site is specified.",
|
|
31
|
-
"default": null
|
|
32
|
-
},
|
|
33
|
-
"user": {
|
|
34
|
-
"type": "string",
|
|
35
|
-
"description": "Set the WordPress user.",
|
|
36
|
-
"default": null
|
|
37
|
-
},
|
|
38
|
-
"skip-plugins": {
|
|
39
|
-
"type": "array",
|
|
40
|
-
"items": {
|
|
41
|
-
"type": "string",
|
|
42
|
-
"description": "Plugin slug"
|
|
43
|
-
},
|
|
44
|
-
"description": "Skip loading all or some plugins. Note: mu-plugins are still loaded.",
|
|
45
|
-
"default": []
|
|
46
|
-
},
|
|
47
|
-
"skip-themes": {
|
|
48
|
-
"type": "array",
|
|
49
|
-
"items": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "Theme slug"
|
|
52
|
-
},
|
|
53
|
-
"description": "Skip loading all or some themes.",
|
|
54
|
-
"default": []
|
|
55
|
-
},
|
|
56
|
-
"skip-packages": {
|
|
57
|
-
"type": "boolean",
|
|
58
|
-
"description": "Skip loading all installed packages.",
|
|
59
|
-
"default": false
|
|
60
|
-
},
|
|
61
|
-
"require": {
|
|
62
|
-
"type": "array",
|
|
63
|
-
"items": {
|
|
64
|
-
"type": "string",
|
|
65
|
-
"description": "File path"
|
|
66
|
-
},
|
|
67
|
-
"description": "Load PHP file before running the command (may be used more than once).",
|
|
68
|
-
"default": []
|
|
69
|
-
},
|
|
70
|
-
"exec": {
|
|
71
|
-
"type": "array",
|
|
72
|
-
"items": {
|
|
73
|
-
"type": "string",
|
|
74
|
-
"description": "PHP code to execute"
|
|
75
|
-
},
|
|
76
|
-
"description": "Execute PHP code before running the command (may be used more than once).",
|
|
77
|
-
"default": []
|
|
78
|
-
},
|
|
79
|
-
"context": {
|
|
80
|
-
"type": "string",
|
|
81
|
-
"description": "Load WordPress in a given context.",
|
|
82
|
-
"oneOf": [
|
|
83
|
-
{ "const": "admin", "description": "A context that simulates running a command as if it would be executed in the administration backend." },
|
|
84
|
-
{ "const": "auto", "description": "Switches between 'cli' and 'admin' depending on which command is being used." },
|
|
85
|
-
{ "const": "cli", "description": "This is something in-between a frontend and an admin request, to get around some of the quirks of WordPress when running on the console." },
|
|
86
|
-
{ "const": "frontend", "description": "This does nothing yet." }
|
|
87
|
-
],
|
|
88
|
-
"default": "auto"
|
|
89
|
-
},
|
|
90
|
-
"disabled_commands": {
|
|
91
|
-
"type": "array",
|
|
92
|
-
"items": {
|
|
93
|
-
"type": "string",
|
|
94
|
-
"description": "Command"
|
|
95
|
-
},
|
|
96
|
-
"description": "(Sub)commands to disable.",
|
|
97
|
-
"default": []
|
|
98
|
-
},
|
|
99
|
-
"color": {
|
|
100
|
-
"oneOf": [
|
|
101
|
-
{
|
|
102
|
-
"type": "boolean"
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"type": "string",
|
|
106
|
-
"const": "auto"
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"description": "Whether to colorize the output.",
|
|
110
|
-
"default": "auto"
|
|
111
|
-
},
|
|
112
|
-
"debug": {
|
|
113
|
-
"oneOf": [
|
|
114
|
-
{
|
|
115
|
-
"type": "boolean"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"type": "string"
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"description": "Show all PHP errors; add verbosity to WP-CLI bootstrap.",
|
|
122
|
-
"default": false
|
|
123
|
-
},
|
|
124
|
-
"quiet": {
|
|
125
|
-
"type": "boolean",
|
|
126
|
-
"description": "Suppress informational messages.",
|
|
127
|
-
"default": false
|
|
128
|
-
},
|
|
129
|
-
"apache_modules": {
|
|
130
|
-
"type": "array",
|
|
131
|
-
"items": {
|
|
132
|
-
"type": "string",
|
|
133
|
-
"description": "Module"
|
|
134
|
-
},
|
|
135
|
-
"description": "List of Apache Modules that are to be reported as loaded.",
|
|
136
|
-
"default": []
|
|
137
|
-
},
|
|
138
|
-
"env": {
|
|
139
|
-
"type": "object",
|
|
140
|
-
"additionalProperties": {
|
|
141
|
-
"oneOf": [
|
|
142
|
-
{
|
|
143
|
-
"type": "string"
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"type": "number"
|
|
147
|
-
}
|
|
148
|
-
]
|
|
149
|
-
},
|
|
150
|
-
"description": "Set environment variable values. These will be used as fallbacks when the corresponding environment variable is not set in the shell. All values are converted to strings.",
|
|
151
|
-
"default": {}
|
|
152
|
-
},
|
|
153
|
-
"_": {
|
|
154
|
-
"type": "object",
|
|
155
|
-
"properties": {
|
|
156
|
-
"merge": {
|
|
157
|
-
"type": "boolean",
|
|
158
|
-
"description": "Merge subcommand defaults from the upstream config.yml, instead of overriding",
|
|
159
|
-
"default": false
|
|
160
|
-
},
|
|
161
|
-
"inherit": {
|
|
162
|
-
"type": "string",
|
|
163
|
-
"description": "Inherit configuration from an arbitrary YAML file",
|
|
164
|
-
"default": null
|
|
165
|
-
}
|
|
166
|
-
},
|
|
167
|
-
"description": "'_' is a special value denoting configuration options for this wp-cli.yml"
|
|
168
|
-
}
|
|
169
|
-
},
|
|
170
|
-
"patternProperties": {
|
|
171
|
-
"^@[_a-zA-Z][_a-zA-Z0-9]*$": {
|
|
172
|
-
"oneOf": [
|
|
173
|
-
{
|
|
174
|
-
"type": "object",
|
|
175
|
-
"properties": {
|
|
176
|
-
"user": {
|
|
177
|
-
"type": "string",
|
|
178
|
-
"description": "Set the WordPress user."
|
|
179
|
-
},
|
|
180
|
-
"url": {
|
|
181
|
-
"type": "string",
|
|
182
|
-
"description": "Pretend request came from given URL. In multisite, this argument is how the target site is specified."
|
|
183
|
-
},
|
|
184
|
-
"path": {
|
|
185
|
-
"type": "string",
|
|
186
|
-
"description": "Path to the WordPress files."
|
|
187
|
-
},
|
|
188
|
-
"ssh": {
|
|
189
|
-
"type": "string",
|
|
190
|
-
"description": "Perform operation against a remote server over SSH (or a container using scheme of \"docker\", \"docker-compose\", \"docker-compose-run\", \"vagrant\")."
|
|
191
|
-
},
|
|
192
|
-
"http": {
|
|
193
|
-
"type": "string",
|
|
194
|
-
"format": "uri",
|
|
195
|
-
"description": "Perform operation against a remote WordPress installation over HTTP."
|
|
196
|
-
}
|
|
197
|
-
},
|
|
198
|
-
"description": "An alias can include 'user', 'url', 'path', 'ssh', or 'http'"
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
"type": "array",
|
|
202
|
-
"items": {
|
|
203
|
-
"type": "string",
|
|
204
|
-
"description": "Alias name"
|
|
205
|
-
},
|
|
206
|
-
"description": "Aliases can reference other aliases to create alias groups. Alias groups can be nested"
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
"description": "Aliases to other WordPress installs (e.g. `wp @staging rewrite flush`)"
|
|
210
|
-
},
|
|
211
|
-
"^[a-z]+[a-z-]*\\s[a-z-]+.*$": {
|
|
212
|
-
"type": "object",
|
|
213
|
-
"additionalProperties": true,
|
|
214
|
-
"description": "Subcommand defaults (e.g. `wp config create`)"
|
|
215
|
-
}
|
|
216
|
-
},
|
|
217
|
-
"additionalProperties": false
|
|
218
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
$schema: "./wp-cli-config.json"
|
|
2
|
-
path: wp-core
|
|
3
|
-
url: http://example.com
|
|
4
|
-
user: admin
|
|
5
|
-
color: false
|
|
6
|
-
disabled_commands:
|
|
7
|
-
- db drop
|
|
8
|
-
- plugin install
|
|
9
|
-
require:
|
|
10
|
-
- path-to/command.php
|
|
11
|
-
|
|
12
|
-
# Environment variables configuration
|
|
13
|
-
# Values defined here will be used as fallbacks when the corresponding
|
|
14
|
-
# environment variable is not set in the shell.
|
|
15
|
-
# Note: String values that look like YAML booleans (yes/no/true/false) must be quoted.
|
|
16
|
-
env:
|
|
17
|
-
WP_CLI_CACHE_DIR: /tmp/wp-cli-cache
|
|
18
|
-
WP_CLI_PACKAGES_DIR: /tmp/wp-cli-packages
|
|
19
|
-
WP_CLI_CACHE_EXPIRY: 3600
|
|
20
|
-
WP_CLI_CACHE_MAX_SIZE: 104857600
|
|
21
|
-
WP_CLI_ERROR_RERUN: "prompt"
|
|
22
|
-
WP_CLI_AUTO_UPDATE_PROMPT: "no"
|
|
23
|
-
WP_CLI_DISABLE_AUTO_CHECK_UPDATE: "1"
|
|
24
|
-
WP_CLI_AUTO_CHECK_UPDATE_DAYS: 7
|
|
25
|
-
WP_CLI_AUTOCORRECT: "1"
|
|
26
|
-
|
|
27
|
-
config create:
|
|
28
|
-
dbuser: root
|
|
29
|
-
dbpass:
|
|
30
|
-
extra-php: |
|
|
31
|
-
define( 'WP_DEBUG', true );
|
|
32
|
-
define( 'WP_POST_REVISIONS', 50 );
|
|
33
|
-
|
|
34
|
-
"@foo":
|
|
35
|
-
bar: "baz"
|
|
36
|
-
|
|
37
|
-
"@staging":
|
|
38
|
-
ssh: wpcli@staging.wp-cli.org
|
|
39
|
-
user: wpcli
|
|
40
|
-
path: /srv/www/staging.wp-cli.org
|
|
41
|
-
|
|
42
|
-
"@production":
|
|
43
|
-
ssh: wpcli@wp-cli.org:2222
|
|
44
|
-
user: wpcli
|
|
45
|
-
path: /srv/www/wp-cli.org
|
|
46
|
-
|
|
47
|
-
# Aliases can reference other aliases to create alias groups
|
|
48
|
-
# Alias groups can be nested
|
|
49
|
-
"@both":
|
|
50
|
-
- "@staging"
|
|
51
|
-
- "@production"
|
|
52
|
-
|
|
53
|
-
_:
|
|
54
|
-
merge: true
|
|
55
|
-
inherit: prod.yml
|
|
File without changes
|