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
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1bf458412568e134a4514f5e170a328d11091e071c7110955c9884ed87972ac9 cacert.pem
|
package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json
CHANGED
|
@@ -43,18 +43,18 @@
|
|
|
43
43
|
"config": {
|
|
44
44
|
"allow-plugins": {
|
|
45
45
|
"dealerdirect/phpcodesniffer-composer-installer": true
|
|
46
|
-
}
|
|
47
|
-
"lock": false
|
|
46
|
+
}
|
|
48
47
|
},
|
|
49
48
|
"require-dev": {
|
|
50
49
|
"requests/test-server": "dev-main",
|
|
51
50
|
"squizlabs/php_codesniffer": "^3.6",
|
|
52
|
-
"phpcompatibility/php-compatibility": "^
|
|
51
|
+
"phpcompatibility/php-compatibility": "^9.0",
|
|
53
52
|
"wp-coding-standards/wpcs": "^2.0",
|
|
54
|
-
"dealerdirect/phpcodesniffer-composer-installer": "^0.7
|
|
53
|
+
"dealerdirect/phpcodesniffer-composer-installer": "^0.7",
|
|
55
54
|
"php-parallel-lint/php-parallel-lint": "^1.3.1",
|
|
56
55
|
"php-parallel-lint/php-console-highlighter": "^0.5.0",
|
|
57
|
-
"yoast/phpunit-polyfills": "^1.
|
|
56
|
+
"yoast/phpunit-polyfills": "^1.0.0",
|
|
57
|
+
"roave/security-advisories": "dev-latest"
|
|
58
58
|
},
|
|
59
59
|
"suggest": {
|
|
60
60
|
"ext-curl": "For improved performance",
|
|
@@ -62,8 +62,6 @@
|
|
|
62
62
|
"ext-zlib": "For improved performance when decompressing encoded streams",
|
|
63
63
|
"art4/requests-psr18-adapter": "For using Requests as a PSR-18 HTTP Client"
|
|
64
64
|
},
|
|
65
|
-
"minimum-stability": "dev",
|
|
66
|
-
"prefer-stable": true,
|
|
67
65
|
"autoload": {
|
|
68
66
|
"psr-4": {
|
|
69
67
|
"WpOrg\\Requests\\": "src/"
|
package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php
CHANGED
|
@@ -214,7 +214,7 @@ class Iri {
|
|
|
214
214
|
$return = null;
|
|
215
215
|
}
|
|
216
216
|
|
|
217
|
-
if ($return === null && isset($this->
|
|
217
|
+
if ($return === null && isset($this->normalization[$this->scheme][$name])) {
|
|
218
218
|
return $this->normalization[$this->scheme][$name];
|
|
219
219
|
}
|
|
220
220
|
else {
|
|
@@ -669,29 +669,27 @@ class Iri {
|
|
|
669
669
|
}
|
|
670
670
|
|
|
671
671
|
protected function scheme_normalization() {
|
|
672
|
-
if (isset($this->scheme
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
$this->ipath = '';
|
|
684
|
-
}
|
|
685
|
-
if (isset($this->normalization[$this->scheme]['iquery']) && $this->iquery === $this->normalization[$this->scheme]['iquery']) {
|
|
686
|
-
$this->iquery = null;
|
|
687
|
-
}
|
|
688
|
-
if (isset($this->normalization[$this->scheme]['ifragment']) && $this->ifragment === $this->normalization[$this->scheme]['ifragment']) {
|
|
689
|
-
$this->ifragment = null;
|
|
690
|
-
}
|
|
672
|
+
if (isset($this->normalization[$this->scheme]['iuserinfo']) && $this->iuserinfo === $this->normalization[$this->scheme]['iuserinfo']) {
|
|
673
|
+
$this->iuserinfo = null;
|
|
674
|
+
}
|
|
675
|
+
if (isset($this->normalization[$this->scheme]['ihost']) && $this->ihost === $this->normalization[$this->scheme]['ihost']) {
|
|
676
|
+
$this->ihost = null;
|
|
677
|
+
}
|
|
678
|
+
if (isset($this->normalization[$this->scheme]['port']) && $this->port === $this->normalization[$this->scheme]['port']) {
|
|
679
|
+
$this->port = null;
|
|
680
|
+
}
|
|
681
|
+
if (isset($this->normalization[$this->scheme]['ipath']) && $this->ipath === $this->normalization[$this->scheme]['ipath']) {
|
|
682
|
+
$this->ipath = '';
|
|
691
683
|
}
|
|
692
684
|
if (isset($this->ihost) && empty($this->ipath)) {
|
|
693
685
|
$this->ipath = '/';
|
|
694
686
|
}
|
|
687
|
+
if (isset($this->normalization[$this->scheme]['iquery']) && $this->iquery === $this->normalization[$this->scheme]['iquery']) {
|
|
688
|
+
$this->iquery = null;
|
|
689
|
+
}
|
|
690
|
+
if (isset($this->normalization[$this->scheme]['ifragment']) && $this->ifragment === $this->normalization[$this->scheme]['ifragment']) {
|
|
691
|
+
$this->ifragment = null;
|
|
692
|
+
}
|
|
695
693
|
}
|
|
696
694
|
|
|
697
695
|
/**
|
|
@@ -126,7 +126,6 @@ final class Curl implements Transport {
|
|
|
126
126
|
*/
|
|
127
127
|
public function __destruct() {
|
|
128
128
|
if (is_resource($this->handle)) {
|
|
129
|
-
// phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated,Generic.PHP.DeprecatedFunctions.Deprecated
|
|
130
129
|
curl_close($this->handle);
|
|
131
130
|
}
|
|
132
131
|
}
|
|
@@ -307,10 +306,7 @@ final class Curl implements Transport {
|
|
|
307
306
|
}
|
|
308
307
|
|
|
309
308
|
curl_multi_remove_handle($multihandle, $done['handle']);
|
|
310
|
-
|
|
311
|
-
// phpcs:ignore PHPCompatibility.FunctionUse.RemovedFunctions.curl_closeDeprecated,Generic.PHP.DeprecatedFunctions.Deprecated
|
|
312
|
-
curl_close($done['handle']);
|
|
313
|
-
}
|
|
309
|
+
curl_close($done['handle']);
|
|
314
310
|
|
|
315
311
|
if (!is_string($responses[$key])) {
|
|
316
312
|
$options['hooks']->dispatch('multiple.request.complete', [&$responses[$key], $key]);
|
|
@@ -148,11 +148,9 @@ final class Fsockopen implements Transport {
|
|
|
148
148
|
// Ref: https://wiki.php.net/rfc/deprecate_functions_with_overloaded_signatures#stream_context_set_option
|
|
149
149
|
if (function_exists('stream_context_set_options')) {
|
|
150
150
|
// PHP 8.3+.
|
|
151
|
-
// phpcs:ignore PHPCompatibility.FunctionUse.NewFunctions.stream_context_set_optionsFound
|
|
152
151
|
stream_context_set_options($context, ['ssl' => $context_options]);
|
|
153
152
|
} else {
|
|
154
153
|
// PHP < 8.3.
|
|
155
|
-
// phpcs:ignore PHPCompatibility.FunctionUse.OptionalToRequiredFunctionParameters
|
|
156
154
|
stream_context_set_option($context, ['ssl' => $context_options]);
|
|
157
155
|
}
|
|
158
156
|
} else {
|
|
@@ -49,10 +49,6 @@ class CaseInsensitiveDictionary implements ArrayAccess, IteratorAggregate {
|
|
|
49
49
|
$offset = strtolower($offset);
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
if ($offset === null) {
|
|
53
|
-
$offset = '';
|
|
54
|
-
}
|
|
55
|
-
|
|
56
52
|
return isset($this->data[$offset]);
|
|
57
53
|
}
|
|
58
54
|
|
|
@@ -68,10 +64,6 @@ class CaseInsensitiveDictionary implements ArrayAccess, IteratorAggregate {
|
|
|
68
64
|
$offset = strtolower($offset);
|
|
69
65
|
}
|
|
70
66
|
|
|
71
|
-
if ($offset === null) {
|
|
72
|
-
$offset = '';
|
|
73
|
-
}
|
|
74
|
-
|
|
75
67
|
if (!isset($this->data[$offset])) {
|
|
76
68
|
return null;
|
|
77
69
|
}
|
|
@@ -111,10 +103,6 @@ class CaseInsensitiveDictionary implements ArrayAccess, IteratorAggregate {
|
|
|
111
103
|
$offset = strtolower($offset);
|
|
112
104
|
}
|
|
113
105
|
|
|
114
|
-
if ($offset === null) {
|
|
115
|
-
$offset = '';
|
|
116
|
-
}
|
|
117
|
-
|
|
118
106
|
unset($this->data[$offset]);
|
|
119
107
|
}
|
|
120
108
|
|
|
@@ -28,13 +28,13 @@ final class FilteredIterator extends ArrayIterator {
|
|
|
28
28
|
/**
|
|
29
29
|
* Create a new iterator
|
|
30
30
|
*
|
|
31
|
-
* @param array $data The array to be iterated on.
|
|
31
|
+
* @param array $data The array or object to be iterated on.
|
|
32
32
|
* @param callable $callback Callback to be called on each value
|
|
33
33
|
*
|
|
34
34
|
* @throws \WpOrg\Requests\Exception\InvalidArgument When the passed $data argument is not iterable.
|
|
35
35
|
*/
|
|
36
36
|
public function __construct($data, $callback) {
|
|
37
|
-
if (
|
|
37
|
+
if (InputValidator::is_iterable($data) === false) {
|
|
38
38
|
throw InvalidArgument::create(1, '$data', 'iterable', gettype($data));
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -8,30 +8,28 @@
|
|
|
8
8
|
"homepage": "https://wp-cli.org",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"require": {
|
|
11
|
-
"php": "
|
|
12
|
-
"
|
|
11
|
+
"php": "^5.6 || ^7.0 || ^8.0",
|
|
12
|
+
"ext-curl": "*",
|
|
13
|
+
"symfony/finder": ">2.7",
|
|
14
|
+
"wp-cli/mustache": "^2.14.99",
|
|
13
15
|
"wp-cli/mustangostang-spyc": "^0.6.3",
|
|
14
|
-
"wp-cli/php-cli-tools": "~0.12.
|
|
16
|
+
"wp-cli/php-cli-tools": "~0.12.4"
|
|
15
17
|
},
|
|
16
18
|
"require-dev": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"wp-cli/
|
|
20
|
-
"wp-cli/
|
|
21
|
-
"wp-cli/
|
|
22
|
-
"wp-cli/package-command": "^2",
|
|
23
|
-
"wp-cli/wp-cli-tests": "^5"
|
|
19
|
+
"wp-cli/db-command": "^1.3 || ^2",
|
|
20
|
+
"wp-cli/entity-command": "^1.2 || ^2",
|
|
21
|
+
"wp-cli/extension-command": "^1.1 || ^2",
|
|
22
|
+
"wp-cli/package-command": "^1 || ^2",
|
|
23
|
+
"wp-cli/wp-cli-tests": "^4.3.10"
|
|
24
24
|
},
|
|
25
25
|
"suggest": {
|
|
26
|
-
"ext-curl": "For better performance when making HTTP requests",
|
|
27
26
|
"ext-readline": "Include for a better --prompt implementation",
|
|
28
27
|
"ext-zip": "Needed to support extraction of ZIP archives when doing downloads or updates"
|
|
29
28
|
},
|
|
30
29
|
"config": {
|
|
31
30
|
"allow-plugins": {
|
|
32
31
|
"dealerdirect/phpcodesniffer-composer-installer": true,
|
|
33
|
-
"johnpbloch/wordpress-core-installer": true
|
|
34
|
-
"phpstan/extension-installer": true
|
|
32
|
+
"johnpbloch/wordpress-core-installer": true
|
|
35
33
|
},
|
|
36
34
|
"process-timeout": 7200,
|
|
37
35
|
"sort-packages": true,
|
|
@@ -39,21 +37,8 @@
|
|
|
39
37
|
},
|
|
40
38
|
"extra": {
|
|
41
39
|
"branch-alias": {
|
|
42
|
-
"dev-main": "2.
|
|
43
|
-
}
|
|
44
|
-
"commands": [
|
|
45
|
-
"cli",
|
|
46
|
-
"cli alias",
|
|
47
|
-
"cli cache",
|
|
48
|
-
"cli check-update",
|
|
49
|
-
"cli cmd-dump",
|
|
50
|
-
"cli completions",
|
|
51
|
-
"cli has-command",
|
|
52
|
-
"cli info",
|
|
53
|
-
"cli param-dump",
|
|
54
|
-
"cli update",
|
|
55
|
-
"cli version"
|
|
56
|
-
]
|
|
40
|
+
"dev-main": "2.12.x-dev"
|
|
41
|
+
}
|
|
57
42
|
},
|
|
58
43
|
"autoload": {
|
|
59
44
|
"psr-0": {
|
|
@@ -76,13 +61,11 @@
|
|
|
76
61
|
"lint": "run-linter-tests",
|
|
77
62
|
"phpcs": "run-phpcs-tests",
|
|
78
63
|
"phpcbf": "run-phpcbf-cleanup",
|
|
79
|
-
"phpstan": "run-phpstan-tests",
|
|
80
64
|
"phpunit": "run-php-unit-tests",
|
|
81
65
|
"prepare-tests": "install-package-tests",
|
|
82
66
|
"test": [
|
|
83
67
|
"@lint",
|
|
84
68
|
"@phpcs",
|
|
85
|
-
"@phpstan",
|
|
86
69
|
"@phpunit",
|
|
87
70
|
"@behat"
|
|
88
71
|
]
|
|
@@ -34,11 +34,9 @@ class Autoloader {
|
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Registers the autoload callback with the SPL autoload system.
|
|
37
|
-
*
|
|
38
|
-
* @param bool $prepend Whether to prepend the autoloader on the stack instead of appending it.
|
|
39
37
|
*/
|
|
40
|
-
public function register(
|
|
41
|
-
spl_autoload_register( [ $this, 'autoload' ]
|
|
38
|
+
public function register() {
|
|
39
|
+
spl_autoload_register( [ $this, 'autoload' ] );
|
|
42
40
|
}
|
|
43
41
|
|
|
44
42
|
/**
|
|
@@ -78,16 +78,7 @@ abstract class AutoloaderStep implements BootstrapStep {
|
|
|
78
78
|
return false;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
$
|
|
82
|
-
|
|
83
|
-
if ( false === $contents ) {
|
|
84
|
-
return false;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* @var object{config: object{'vendor-dir': string}} $composer
|
|
89
|
-
*/
|
|
90
|
-
$composer = json_decode( $contents );
|
|
81
|
+
$composer = json_decode( file_get_contents( $maybe_composer_json ) );
|
|
91
82
|
|
|
92
83
|
if ( ! empty( $composer->config )
|
|
93
84
|
&& ! empty( $composer->config->{'vendor-dir'} )
|
package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
namespace WP_CLI\Bootstrap;
|
|
4
4
|
|
|
5
5
|
use WP_CLI;
|
|
6
|
+
use WP_CLI\Utils;
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* Class CheckRoot.
|
|
@@ -21,9 +22,6 @@ class CheckRoot implements BootstrapStep {
|
|
|
21
22
|
* @return BootstrapState Modified state to pass to the next step.
|
|
22
23
|
*/
|
|
23
24
|
public function process( BootstrapState $state ) {
|
|
24
|
-
/**
|
|
25
|
-
* @var array{'allow-root'?: bool} $config
|
|
26
|
-
*/
|
|
27
25
|
$config = $state->getValue( 'config', [] );
|
|
28
26
|
if ( array_key_exists( 'allow-root', $config ) && true === $config['allow-root'] ) {
|
|
29
27
|
// They're aware of the risks and set a flag to allow root.
|
|
@@ -35,9 +33,6 @@ class CheckRoot implements BootstrapStep {
|
|
|
35
33
|
return $state;
|
|
36
34
|
}
|
|
37
35
|
|
|
38
|
-
/**
|
|
39
|
-
* @var string[] $args
|
|
40
|
-
*/
|
|
41
36
|
$args = $state->getValue( 'arguments', [] );
|
|
42
37
|
if ( count( $args ) >= 2 && 'cli' === $args[0] && in_array( $args[1], [ 'update', 'info' ], true ) ) {
|
|
43
38
|
// Make it easier to update root-owned copies.
|
|
@@ -69,20 +64,7 @@ class CheckRoot implements BootstrapStep {
|
|
|
69
64
|
"run the following to become the respective user:\n" .
|
|
70
65
|
"\n" .
|
|
71
66
|
" sudo -u USER -i -- wp <command>\n" .
|
|
72
|
-
"\n"
|
|
73
|
-
"(omit -i when using a system user account)\n" .
|
|
74
|
-
"\n" .
|
|
75
|
-
"Note: When using 'sudo -i', the command is passed via the login " .
|
|
76
|
-
"shell's '-c' flag, which strips one layer of quotes. To correctly " .
|
|
77
|
-
'pass empty arguments or arguments with spaces, wrap them in an ' .
|
|
78
|
-
"extra set of quotes (e.g. single quotes inside double quotes):\n" .
|
|
79
|
-
"\n" .
|
|
80
|
-
" sudo -u USER -i -- wp search-replace \"'old'\" \"''\" --path=/var/www/html\n" .
|
|
81
|
-
"\n" .
|
|
82
|
-
'The outer double quotes are consumed by the login shell, and the inner ' .
|
|
83
|
-
"single quotes are used only for grouping, so WP-CLI receives the intended\n" .
|
|
84
|
-
"arguments (including empty and space-containing ones) without the quote\n" .
|
|
85
|
-
"characters themselves.\n"
|
|
67
|
+
"\n"
|
|
86
68
|
);
|
|
87
69
|
}
|
|
88
70
|
}
|
|
@@ -35,9 +35,9 @@ final class DefineProtectedCommands implements BootstrapStep {
|
|
|
35
35
|
/**
|
|
36
36
|
* Get the list of protected commands.
|
|
37
37
|
*
|
|
38
|
-
* @return
|
|
38
|
+
* @return array
|
|
39
39
|
*/
|
|
40
|
-
private function get_protected_commands()
|
|
40
|
+
private function get_protected_commands() {
|
|
41
41
|
return [
|
|
42
42
|
'cli info',
|
|
43
43
|
'package',
|
|
@@ -49,7 +49,7 @@ final class DefineProtectedCommands implements BootstrapStep {
|
|
|
49
49
|
*
|
|
50
50
|
* @return string Current command to be executed.
|
|
51
51
|
*/
|
|
52
|
-
private function get_current_command()
|
|
52
|
+
private function get_current_command() {
|
|
53
53
|
$runner = new RunnerInstance();
|
|
54
54
|
|
|
55
55
|
return implode( ' ', (array) $runner()->arguments );
|
|
@@ -32,8 +32,9 @@ final class IncludeFrameworkAutoloader implements BootstrapStep {
|
|
|
32
32
|
$autoloader = new Autoloader();
|
|
33
33
|
|
|
34
34
|
$mappings = [
|
|
35
|
-
'WP_CLI'
|
|
36
|
-
'cli'
|
|
35
|
+
'WP_CLI' => WP_CLI_ROOT . '/php/WP_CLI',
|
|
36
|
+
'cli' => WP_CLI_VENDOR_DIR . '/wp-cli/php-cli-tools/lib/cli',
|
|
37
|
+
'Symfony\Component\Finder' => WP_CLI_VENDOR_DIR . '/symfony/finder/',
|
|
37
38
|
];
|
|
38
39
|
|
|
39
40
|
foreach ( $mappings as $namespace => $folder ) {
|
|
@@ -45,7 +46,7 @@ final class IncludeFrameworkAutoloader implements BootstrapStep {
|
|
|
45
46
|
|
|
46
47
|
include_once WP_CLI_VENDOR_DIR . '/wp-cli/mustangostang-spyc/Spyc.php';
|
|
47
48
|
|
|
48
|
-
$autoloader->register(
|
|
49
|
+
$autoloader->register();
|
|
49
50
|
|
|
50
51
|
return $state;
|
|
51
52
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
namespace WP_CLI\Bootstrap;
|
|
4
4
|
|
|
5
5
|
use WP_CLI\Autoloader;
|
|
6
|
-
use WP_CLI\Path;
|
|
7
6
|
use WP_CLI\RequestsLibrary;
|
|
7
|
+
use WP_CLI\Utils;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Class IncludeRequestsAutoloader.
|
|
@@ -58,7 +58,7 @@ final class IncludeRequestsAutoloader implements BootstrapStep {
|
|
|
58
58
|
if ( is_bool( $alias_path ) || empty( $alias_path ) ) {
|
|
59
59
|
return $state;
|
|
60
60
|
}
|
|
61
|
-
if ( !
|
|
61
|
+
if ( ! Utils\is_path_absolute( $alias_path ) ) {
|
|
62
62
|
$alias_path = getcwd() . '/' . $alias_path;
|
|
63
63
|
}
|
|
64
64
|
$wp_root = rtrim( $alias_path, '/' );
|
|
@@ -93,7 +93,6 @@ final class IncludeRequestsAutoloader implements BootstrapStep {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
if ( class_exists( '\\Requests' ) ) {
|
|
96
|
-
// @phpstan-ignore staticMethod.deprecatedClass
|
|
97
96
|
\Requests::register_autoloader();
|
|
98
97
|
$this->store_requests_meta( RequestsLibrary::CLASS_NAME_V1, self::FROM_WP_CORE );
|
|
99
98
|
return $state;
|
|
@@ -125,7 +124,7 @@ final class IncludeRequestsAutoloader implements BootstrapStep {
|
|
|
125
124
|
* @param string $class_name The class name of the Requests integration.
|
|
126
125
|
* @param string $source The source of the Requests integration.
|
|
127
126
|
*/
|
|
128
|
-
private function store_requests_meta( $class_name, $source )
|
|
127
|
+
private function store_requests_meta( $class_name, $source ) {
|
|
129
128
|
RequestsLibrary::set_version(
|
|
130
129
|
RequestsLibrary::CLASS_NAME_V2 === $class_name
|
|
131
130
|
? RequestsLibrary::VERSION_V2
|
|
@@ -30,9 +30,6 @@ final class InitializeContexts implements BootstrapStep {
|
|
|
30
30
|
Context::AUTO => new Context\Auto( $context_manager ),
|
|
31
31
|
];
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* @var array<string, Context> $contexts
|
|
35
|
-
*/
|
|
36
33
|
$contexts = WP_CLI::do_hook( 'before_registering_contexts', $contexts );
|
|
37
34
|
|
|
38
35
|
foreach ( $contexts as $name => $implementation ) {
|
|
@@ -31,7 +31,7 @@ final class InitializeLogger implements BootstrapStep {
|
|
|
31
31
|
/**
|
|
32
32
|
* Load the class declarations for the loggers.
|
|
33
33
|
*/
|
|
34
|
-
private function declare_loggers()
|
|
34
|
+
private function declare_loggers() {
|
|
35
35
|
$logger_dir = WP_CLI_ROOT . '/php/WP_CLI/Loggers';
|
|
36
36
|
$iterator = new DirectoryIterator( $logger_dir );
|
|
37
37
|
|
package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php
CHANGED
|
@@ -21,12 +21,9 @@ final class LaunchRunner implements BootstrapStep {
|
|
|
21
21
|
public function process( BootstrapState $state ) {
|
|
22
22
|
$runner = new RunnerInstance();
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
$context_manager = $state->getValue( 'context_manager' );
|
|
28
|
-
|
|
29
|
-
$runner()->register_context_manager( $context_manager );
|
|
24
|
+
$runner()->register_context_manager(
|
|
25
|
+
$state->getValue( 'context_manager' )
|
|
26
|
+
);
|
|
30
27
|
|
|
31
28
|
$runner()->start();
|
|
32
29
|
|
|
@@ -2,16 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
namespace WP_CLI\Bootstrap;
|
|
4
4
|
|
|
5
|
-
use WP_CLI\ShutdownHandler;
|
|
6
|
-
|
|
7
5
|
/**
|
|
8
|
-
* Class
|
|
6
|
+
* Class LoadDispatcher.
|
|
9
7
|
*
|
|
10
|
-
*
|
|
8
|
+
* Loads the dispatcher that will dispatch command names to file locations.
|
|
11
9
|
*
|
|
12
10
|
* @package WP_CLI\Bootstrap
|
|
13
11
|
*/
|
|
14
|
-
final class
|
|
12
|
+
final class LoadDispatcher implements BootstrapStep {
|
|
15
13
|
|
|
16
14
|
/**
|
|
17
15
|
* Process this single bootstrapping step.
|
|
@@ -21,7 +19,7 @@ final class RegisterShutdownHandler implements BootstrapStep {
|
|
|
21
19
|
* @return BootstrapState Modified state to pass to the next step.
|
|
22
20
|
*/
|
|
23
21
|
public function process( BootstrapState $state ) {
|
|
24
|
-
|
|
22
|
+
require_once WP_CLI_ROOT . '/php/dispatcher.php';
|
|
25
23
|
|
|
26
24
|
return $state;
|
|
27
25
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
namespace WP_CLI\Bootstrap;
|
|
4
4
|
|
|
5
5
|
use WP_CLI;
|
|
6
|
-
use WP_CLI\Path;
|
|
7
6
|
use WP_CLI\Utils;
|
|
8
7
|
|
|
9
8
|
/**
|
|
@@ -36,17 +35,14 @@ final class LoadRequiredCommand implements BootstrapStep {
|
|
|
36
35
|
if ( ! file_exists( $path ) ) {
|
|
37
36
|
$context = '';
|
|
38
37
|
$required_files = $runner()->get_required_files();
|
|
39
|
-
foreach ( [ '
|
|
40
|
-
if (
|
|
38
|
+
foreach ( [ 'global', 'project', 'runtime' ] as $scope ) {
|
|
39
|
+
if ( in_array( $path, $required_files[ $scope ], true ) ) {
|
|
41
40
|
switch ( $scope ) {
|
|
42
|
-
case 'system':
|
|
43
|
-
$context = ' (from system ' . Path::basename( (string) $runner()->get_system_config_path() ) . ')';
|
|
44
|
-
break;
|
|
45
41
|
case 'global':
|
|
46
|
-
$context = ' (from global ' .
|
|
42
|
+
$context = ' (from global ' . Utils\basename( $runner()->get_global_config_path() ) . ')';
|
|
47
43
|
break;
|
|
48
44
|
case 'project':
|
|
49
|
-
$context = ' (from project\'s ' .
|
|
45
|
+
$context = ' (from project\'s ' . Utils\basename( $runner()->get_project_config_path() ) . ')';
|
|
50
46
|
break;
|
|
51
47
|
case 'runtime':
|
|
52
48
|
$context = ' (from runtime argument)';
|
|
@@ -55,7 +51,7 @@ final class LoadRequiredCommand implements BootstrapStep {
|
|
|
55
51
|
break;
|
|
56
52
|
}
|
|
57
53
|
}
|
|
58
|
-
WP_CLI::error( sprintf( "Required file '%s' doesn't exist%s.",
|
|
54
|
+
WP_CLI::error( sprintf( "Required file '%s' doesn't exist%s.", Utils\basename( $path ), $context ) );
|
|
59
55
|
}
|
|
60
56
|
Utils\load_file( $path );
|
|
61
57
|
WP_CLI::debug( 'Required file from config: ' . $path, 'bootstrap' );
|