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
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Gitignore matches against text.
|
|
16
|
+
*
|
|
17
|
+
* @author Michael Voříšek <vorismi3@fel.cvut.cz>
|
|
18
|
+
* @author Ahmed Abdou <mail@ahmd.io>
|
|
19
|
+
*/
|
|
20
|
+
class Gitignore
|
|
21
|
+
{
|
|
22
|
+
/**
|
|
23
|
+
* Returns a regexp which is the equivalent of the gitignore pattern.
|
|
24
|
+
*
|
|
25
|
+
* Format specification: https://git-scm.com/docs/gitignore#_pattern_format
|
|
26
|
+
*/
|
|
27
|
+
public static function toRegex(string $gitignoreFileContent): string
|
|
28
|
+
{
|
|
29
|
+
return self::buildRegex($gitignoreFileContent, false);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public static function toRegexMatchingNegatedPatterns(string $gitignoreFileContent): string
|
|
33
|
+
{
|
|
34
|
+
return self::buildRegex($gitignoreFileContent, true);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
private static function buildRegex(string $gitignoreFileContent, bool $inverted): string
|
|
38
|
+
{
|
|
39
|
+
$gitignoreFileContent = preg_replace('~(?<!\\\\)#[^\n\r]*~', '', $gitignoreFileContent);
|
|
40
|
+
$gitignoreLines = preg_split('~\r\n?|\n~', $gitignoreFileContent);
|
|
41
|
+
|
|
42
|
+
$res = self::lineToRegex('');
|
|
43
|
+
foreach ($gitignoreLines as $line) {
|
|
44
|
+
$line = preg_replace('~(?<!\\\\)[ \t]+$~', '', $line);
|
|
45
|
+
|
|
46
|
+
if (str_starts_with($line, '!')) {
|
|
47
|
+
$line = substr($line, 1);
|
|
48
|
+
$isNegative = true;
|
|
49
|
+
} else {
|
|
50
|
+
$isNegative = false;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
if ('' !== $line) {
|
|
54
|
+
if ($isNegative xor $inverted) {
|
|
55
|
+
$res = '(?!'.self::lineToRegex($line).'$)'.$res;
|
|
56
|
+
} else {
|
|
57
|
+
$res = '(?:'.$res.'|'.self::lineToRegex($line).')';
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return '~^(?:'.$res.')~s';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
private static function lineToRegex(string $gitignoreLine): string
|
|
66
|
+
{
|
|
67
|
+
if ('' === $gitignoreLine) {
|
|
68
|
+
return '$f'; // always false
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
$slashPos = strpos($gitignoreLine, '/');
|
|
72
|
+
if (false !== $slashPos && \strlen($gitignoreLine) - 1 !== $slashPos) {
|
|
73
|
+
if (0 === $slashPos) {
|
|
74
|
+
$gitignoreLine = substr($gitignoreLine, 1);
|
|
75
|
+
}
|
|
76
|
+
$isAbsolute = true;
|
|
77
|
+
} else {
|
|
78
|
+
$isAbsolute = false;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
$regex = preg_quote(str_replace('\\', '', $gitignoreLine), '~');
|
|
82
|
+
$regex = preg_replace_callback('~\\\\\[((?:\\\\!)?)([^\[\]]*)\\\\\]~', fn (array $matches): string => '['.('' !== $matches[1] ? '^' : '').str_replace('\\-', '-', $matches[2]).']', $regex);
|
|
83
|
+
$regex = preg_replace('~(?:(?:\\\\\*){2,}(/?))+~', '(?:(?:(?!//).(?<!//))+$1)?', $regex);
|
|
84
|
+
$regex = preg_replace('~\\\\\*~', '[^/]*', $regex);
|
|
85
|
+
$regex = preg_replace('~\\\\\?~', '[^/]', $regex);
|
|
86
|
+
|
|
87
|
+
return ($isAbsolute ? '' : '(?:[^/]+/)*')
|
|
88
|
+
.$regex
|
|
89
|
+
.(!str_ends_with($gitignoreLine, '/') ? '(?:$|/)' : '');
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Glob matches globbing patterns against text.
|
|
16
|
+
*
|
|
17
|
+
* if match_glob("foo.*", "foo.bar") echo "matched\n";
|
|
18
|
+
*
|
|
19
|
+
* // prints foo.bar and foo.baz
|
|
20
|
+
* $regex = glob_to_regex("foo.*");
|
|
21
|
+
* for (['foo.bar', 'foo.baz', 'foo', 'bar'] as $t)
|
|
22
|
+
* {
|
|
23
|
+
* if (/$regex/) echo "matched: $car\n";
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* Glob implements glob(3) style matching that can be used to match
|
|
27
|
+
* against text, rather than fetching names from a filesystem.
|
|
28
|
+
*
|
|
29
|
+
* Based on the Perl Text::Glob module.
|
|
30
|
+
*
|
|
31
|
+
* @author Fabien Potencier <fabien@symfony.com> PHP port
|
|
32
|
+
* @author Richard Clamp <richardc@unixbeard.net> Perl version
|
|
33
|
+
* @copyright 2004-2005 Fabien Potencier <fabien@symfony.com>
|
|
34
|
+
* @copyright 2002 Richard Clamp <richardc@unixbeard.net>
|
|
35
|
+
*/
|
|
36
|
+
class Glob
|
|
37
|
+
{
|
|
38
|
+
/**
|
|
39
|
+
* Returns a regexp which is the equivalent of the glob pattern.
|
|
40
|
+
*/
|
|
41
|
+
public static function toRegex(string $glob, bool $strictLeadingDot = true, bool $strictWildcardSlash = true, string $delimiter = '#'): string
|
|
42
|
+
{
|
|
43
|
+
$firstByte = true;
|
|
44
|
+
$escaping = false;
|
|
45
|
+
$inCurlies = 0;
|
|
46
|
+
$regex = '';
|
|
47
|
+
if ($unanchored = str_starts_with($glob, '**/')) {
|
|
48
|
+
$glob = '/'.$glob;
|
|
49
|
+
}
|
|
50
|
+
$sizeGlob = \strlen($glob);
|
|
51
|
+
for ($i = 0; $i < $sizeGlob; ++$i) {
|
|
52
|
+
$car = $glob[$i];
|
|
53
|
+
if ($firstByte && $strictLeadingDot && '.' !== $car) {
|
|
54
|
+
$regex .= '(?=[^\.])';
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
$firstByte = '/' === $car;
|
|
58
|
+
|
|
59
|
+
if ($firstByte && $strictWildcardSlash && isset($glob[$i + 2]) && '**' === $glob[$i + 1].$glob[$i + 2] && (!isset($glob[$i + 3]) || '/' === $glob[$i + 3])) {
|
|
60
|
+
$car = '[^/]++/';
|
|
61
|
+
if (!isset($glob[$i + 3])) {
|
|
62
|
+
$car .= '?';
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if ($strictLeadingDot) {
|
|
66
|
+
$car = '(?=[^\.])'.$car;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
$car = '/(?:'.$car.')*';
|
|
70
|
+
$i += 2 + isset($glob[$i + 3]);
|
|
71
|
+
|
|
72
|
+
if ('/' === $delimiter) {
|
|
73
|
+
$car = str_replace('/', '\\/', $car);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
if ($delimiter === $car || '.' === $car || '(' === $car || ')' === $car || '|' === $car || '+' === $car || '^' === $car || '$' === $car) {
|
|
78
|
+
$regex .= "\\$car";
|
|
79
|
+
} elseif ('*' === $car) {
|
|
80
|
+
$regex .= $escaping ? '\\*' : ($strictWildcardSlash ? '[^/]*' : '.*');
|
|
81
|
+
} elseif ('?' === $car) {
|
|
82
|
+
$regex .= $escaping ? '\\?' : ($strictWildcardSlash ? '[^/]' : '.');
|
|
83
|
+
} elseif ('{' === $car) {
|
|
84
|
+
$regex .= $escaping ? '\\{' : '(';
|
|
85
|
+
if (!$escaping) {
|
|
86
|
+
++$inCurlies;
|
|
87
|
+
}
|
|
88
|
+
} elseif ('}' === $car && $inCurlies) {
|
|
89
|
+
$regex .= $escaping ? '}' : ')';
|
|
90
|
+
if (!$escaping) {
|
|
91
|
+
--$inCurlies;
|
|
92
|
+
}
|
|
93
|
+
} elseif (',' === $car && $inCurlies) {
|
|
94
|
+
$regex .= $escaping ? ',' : '|';
|
|
95
|
+
} elseif ('\\' === $car) {
|
|
96
|
+
if ($escaping) {
|
|
97
|
+
$regex .= '\\\\';
|
|
98
|
+
$escaping = false;
|
|
99
|
+
} else {
|
|
100
|
+
$escaping = true;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
continue;
|
|
104
|
+
} else {
|
|
105
|
+
$regex .= $car;
|
|
106
|
+
}
|
|
107
|
+
$escaping = false;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if ($unanchored) {
|
|
111
|
+
$regex = substr_replace($regex, '?', 1 + ('/' === $delimiter) + ($strictLeadingDot ? \strlen('(?=[^\.])') : 0), 0);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return $delimiter.'^'.$regex.'$'.$delimiter;
|
|
115
|
+
}
|
|
116
|
+
}
|
package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* CustomFilterIterator filters files by applying anonymous functions.
|
|
16
|
+
*
|
|
17
|
+
* The anonymous function receives a \SplFileInfo and must return false
|
|
18
|
+
* to remove files.
|
|
19
|
+
*
|
|
20
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
21
|
+
*
|
|
22
|
+
* @extends \FilterIterator<string, \SplFileInfo>
|
|
23
|
+
*/
|
|
24
|
+
class CustomFilterIterator extends \FilterIterator
|
|
25
|
+
{
|
|
26
|
+
private array $filters = [];
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param \Iterator<string, \SplFileInfo> $iterator The Iterator to filter
|
|
30
|
+
* @param callable[] $filters An array of PHP callbacks
|
|
31
|
+
*
|
|
32
|
+
* @throws \InvalidArgumentException
|
|
33
|
+
*/
|
|
34
|
+
public function __construct(\Iterator $iterator, array $filters)
|
|
35
|
+
{
|
|
36
|
+
foreach ($filters as $filter) {
|
|
37
|
+
if (!\is_callable($filter)) {
|
|
38
|
+
throw new \InvalidArgumentException('Invalid PHP callback.');
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
$this->filters = $filters;
|
|
42
|
+
|
|
43
|
+
parent::__construct($iterator);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Filters the iterator values.
|
|
48
|
+
*/
|
|
49
|
+
public function accept(): bool
|
|
50
|
+
{
|
|
51
|
+
$fileinfo = $this->current();
|
|
52
|
+
|
|
53
|
+
foreach ($this->filters as $filter) {
|
|
54
|
+
if (false === $filter($fileinfo)) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
}
|
package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
use Symfony\Component\Finder\Comparator\DateComparator;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* DateRangeFilterIterator filters out files that are not in the given date range (last modified dates).
|
|
18
|
+
*
|
|
19
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
20
|
+
*
|
|
21
|
+
* @extends \FilterIterator<string, \SplFileInfo>
|
|
22
|
+
*/
|
|
23
|
+
class DateRangeFilterIterator extends \FilterIterator
|
|
24
|
+
{
|
|
25
|
+
private array $comparators = [];
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @param \Iterator<string, \SplFileInfo> $iterator
|
|
29
|
+
* @param DateComparator[] $comparators
|
|
30
|
+
*/
|
|
31
|
+
public function __construct(\Iterator $iterator, array $comparators)
|
|
32
|
+
{
|
|
33
|
+
$this->comparators = $comparators;
|
|
34
|
+
|
|
35
|
+
parent::__construct($iterator);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Filters the iterator values.
|
|
40
|
+
*/
|
|
41
|
+
public function accept(): bool
|
|
42
|
+
{
|
|
43
|
+
$fileinfo = $this->current();
|
|
44
|
+
|
|
45
|
+
if (!file_exists($fileinfo->getPathname())) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
$filedate = $fileinfo->getMTime();
|
|
50
|
+
foreach ($this->comparators as $compare) {
|
|
51
|
+
if (!$compare->test($filedate)) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return true;
|
|
57
|
+
}
|
|
58
|
+
}
|
package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* DepthRangeFilterIterator limits the directory depth.
|
|
16
|
+
*
|
|
17
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
18
|
+
*
|
|
19
|
+
* @template-covariant TKey
|
|
20
|
+
* @template-covariant TValue
|
|
21
|
+
*
|
|
22
|
+
* @extends \FilterIterator<TKey, TValue>
|
|
23
|
+
*/
|
|
24
|
+
class DepthRangeFilterIterator extends \FilterIterator
|
|
25
|
+
{
|
|
26
|
+
private int $minDepth = 0;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @param \RecursiveIteratorIterator<\RecursiveIterator<TKey, TValue>> $iterator The Iterator to filter
|
|
30
|
+
* @param int $minDepth The min depth
|
|
31
|
+
* @param int $maxDepth The max depth
|
|
32
|
+
*/
|
|
33
|
+
public function __construct(\RecursiveIteratorIterator $iterator, int $minDepth = 0, int $maxDepth = \PHP_INT_MAX)
|
|
34
|
+
{
|
|
35
|
+
$this->minDepth = $minDepth;
|
|
36
|
+
$iterator->setMaxDepth(\PHP_INT_MAX === $maxDepth ? -1 : $maxDepth);
|
|
37
|
+
|
|
38
|
+
parent::__construct($iterator);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Filters the iterator values.
|
|
43
|
+
*/
|
|
44
|
+
public function accept(): bool
|
|
45
|
+
{
|
|
46
|
+
return $this->getInnerIterator()->getDepth() >= $this->minDepth;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
use Symfony\Component\Finder\SplFileInfo;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* ExcludeDirectoryFilterIterator filters out directories.
|
|
18
|
+
*
|
|
19
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
20
|
+
*
|
|
21
|
+
* @extends \FilterIterator<string, SplFileInfo>
|
|
22
|
+
*
|
|
23
|
+
* @implements \RecursiveIterator<string, SplFileInfo>
|
|
24
|
+
*/
|
|
25
|
+
class ExcludeDirectoryFilterIterator extends \FilterIterator implements \RecursiveIterator
|
|
26
|
+
{
|
|
27
|
+
/** @var \Iterator<string, SplFileInfo> */
|
|
28
|
+
private \Iterator $iterator;
|
|
29
|
+
private bool $isRecursive;
|
|
30
|
+
/** @var array<string, true> */
|
|
31
|
+
private array $excludedDirs = [];
|
|
32
|
+
private ?string $excludedPattern = null;
|
|
33
|
+
/** @var list<callable(SplFileInfo):bool> */
|
|
34
|
+
private array $pruneFilters = [];
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @param \Iterator<string, SplFileInfo> $iterator The Iterator to filter
|
|
38
|
+
* @param list<string|callable(SplFileInfo):bool> $directories An array of directories to exclude
|
|
39
|
+
*/
|
|
40
|
+
public function __construct(\Iterator $iterator, array $directories)
|
|
41
|
+
{
|
|
42
|
+
$this->iterator = $iterator;
|
|
43
|
+
$this->isRecursive = $iterator instanceof \RecursiveIterator;
|
|
44
|
+
$patterns = [];
|
|
45
|
+
foreach ($directories as $directory) {
|
|
46
|
+
if (!\is_string($directory)) {
|
|
47
|
+
if (!\is_callable($directory)) {
|
|
48
|
+
throw new \InvalidArgumentException('Invalid PHP callback.');
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
$this->pruneFilters[] = $directory;
|
|
52
|
+
|
|
53
|
+
continue;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
$directory = rtrim($directory, '/');
|
|
57
|
+
if (!$this->isRecursive || str_contains($directory, '/')) {
|
|
58
|
+
$patterns[] = preg_quote($directory, '#');
|
|
59
|
+
} else {
|
|
60
|
+
$this->excludedDirs[$directory] = true;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
if ($patterns) {
|
|
64
|
+
$this->excludedPattern = '#(?:^|/)(?:'.implode('|', $patterns).')(?:/|$)#';
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
parent::__construct($iterator);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Filters the iterator values.
|
|
72
|
+
*/
|
|
73
|
+
public function accept(): bool
|
|
74
|
+
{
|
|
75
|
+
if ($this->isRecursive && isset($this->excludedDirs[$this->current()->getFilename()]) && $this->current()->isDir()) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
if ($this->excludedPattern) {
|
|
80
|
+
$path = $this->current()->isDir() ? $this->current()->getRelativePathname() : $this->current()->getRelativePath();
|
|
81
|
+
$path = str_replace('\\', '/', $path);
|
|
82
|
+
|
|
83
|
+
return !preg_match($this->excludedPattern, $path);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if ($this->pruneFilters && $this->hasChildren()) {
|
|
87
|
+
foreach ($this->pruneFilters as $pruneFilter) {
|
|
88
|
+
if (!$pruneFilter($this->current())) {
|
|
89
|
+
return false;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
public function hasChildren(): bool
|
|
98
|
+
{
|
|
99
|
+
return $this->isRecursive && $this->iterator->hasChildren();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
public function getChildren(): self
|
|
103
|
+
{
|
|
104
|
+
$children = new self($this->iterator->getChildren(), []);
|
|
105
|
+
$children->excludedDirs = $this->excludedDirs;
|
|
106
|
+
$children->excludedPattern = $this->excludedPattern;
|
|
107
|
+
|
|
108
|
+
return $children;
|
|
109
|
+
}
|
|
110
|
+
}
|
package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* FileTypeFilterIterator only keeps files, directories, or both.
|
|
16
|
+
*
|
|
17
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
18
|
+
*
|
|
19
|
+
* @extends \FilterIterator<string, \SplFileInfo>
|
|
20
|
+
*/
|
|
21
|
+
class FileTypeFilterIterator extends \FilterIterator
|
|
22
|
+
{
|
|
23
|
+
public const ONLY_FILES = 1;
|
|
24
|
+
public const ONLY_DIRECTORIES = 2;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* @param \Iterator<string, \SplFileInfo> $iterator The Iterator to filter
|
|
28
|
+
* @param int $mode The mode (self::ONLY_FILES or self::ONLY_DIRECTORIES)
|
|
29
|
+
*/
|
|
30
|
+
public function __construct(
|
|
31
|
+
\Iterator $iterator,
|
|
32
|
+
private int $mode,
|
|
33
|
+
) {
|
|
34
|
+
parent::__construct($iterator);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Filters the iterator values.
|
|
39
|
+
*/
|
|
40
|
+
public function accept(): bool
|
|
41
|
+
{
|
|
42
|
+
$fileinfo = $this->current();
|
|
43
|
+
if (self::ONLY_DIRECTORIES === (self::ONLY_DIRECTORIES & $this->mode) && $fileinfo->isFile()) {
|
|
44
|
+
return false;
|
|
45
|
+
} elseif (self::ONLY_FILES === (self::ONLY_FILES & $this->mode) && $fileinfo->isDir()) {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
use Symfony\Component\Finder\SplFileInfo;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* FilecontentFilterIterator filters files by their contents using patterns (regexps or strings).
|
|
18
|
+
*
|
|
19
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
20
|
+
* @author Włodzimierz Gajda <gajdaw@gajdaw.pl>
|
|
21
|
+
*
|
|
22
|
+
* @extends MultiplePcreFilterIterator<string, SplFileInfo>
|
|
23
|
+
*/
|
|
24
|
+
class FilecontentFilterIterator extends MultiplePcreFilterIterator
|
|
25
|
+
{
|
|
26
|
+
/**
|
|
27
|
+
* Filters the iterator values.
|
|
28
|
+
*/
|
|
29
|
+
public function accept(): bool
|
|
30
|
+
{
|
|
31
|
+
if (!$this->matchRegexps && !$this->noMatchRegexps) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
$fileinfo = $this->current();
|
|
36
|
+
|
|
37
|
+
if ($fileinfo->isDir() || !$fileinfo->isReadable()) {
|
|
38
|
+
return false;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
$content = $fileinfo->getContents();
|
|
42
|
+
if (!$content) {
|
|
43
|
+
return false;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return $this->isAccepted($content);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Converts string to regexp if necessary.
|
|
51
|
+
*
|
|
52
|
+
* @param string $str Pattern: string or regexp
|
|
53
|
+
*/
|
|
54
|
+
protected function toRegex(string $str): string
|
|
55
|
+
{
|
|
56
|
+
return $this->isRegex($str) ? $str : '/'.preg_quote($str, '/').'/';
|
|
57
|
+
}
|
|
58
|
+
}
|
package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
use Symfony\Component\Finder\Glob;
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* FilenameFilterIterator filters files by patterns (a regexp, a glob, or a string).
|
|
18
|
+
*
|
|
19
|
+
* @author Fabien Potencier <fabien@symfony.com>
|
|
20
|
+
*
|
|
21
|
+
* @extends MultiplePcreFilterIterator<string, \SplFileInfo>
|
|
22
|
+
*/
|
|
23
|
+
class FilenameFilterIterator extends MultiplePcreFilterIterator
|
|
24
|
+
{
|
|
25
|
+
/**
|
|
26
|
+
* Filters the iterator values.
|
|
27
|
+
*/
|
|
28
|
+
public function accept(): bool
|
|
29
|
+
{
|
|
30
|
+
return $this->isAccepted($this->current()->getFilename());
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Converts glob to regexp.
|
|
35
|
+
*
|
|
36
|
+
* PCRE patterns are left unchanged.
|
|
37
|
+
* Glob strings are transformed with Glob::toRegex().
|
|
38
|
+
*
|
|
39
|
+
* @param string $str Pattern: glob or regexp
|
|
40
|
+
*/
|
|
41
|
+
protected function toRegex(string $str): string
|
|
42
|
+
{
|
|
43
|
+
return $this->isRegex($str) ? $str : Glob::toRegex($str);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?php
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* This file is part of the Symfony package.
|
|
5
|
+
*
|
|
6
|
+
* (c) Fabien Potencier <fabien@symfony.com>
|
|
7
|
+
*
|
|
8
|
+
* For the full copyright and license information, please view the LICENSE
|
|
9
|
+
* file that was distributed with this source code.
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
namespace Symfony\Component\Finder\Iterator;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* @author Jérémy Derussé <jeremy@derusse.com>
|
|
16
|
+
*
|
|
17
|
+
* @internal
|
|
18
|
+
*/
|
|
19
|
+
class LazyIterator implements \IteratorAggregate
|
|
20
|
+
{
|
|
21
|
+
private \Closure $iteratorFactory;
|
|
22
|
+
|
|
23
|
+
public function __construct(callable $iteratorFactory)
|
|
24
|
+
{
|
|
25
|
+
$this->iteratorFactory = $iteratorFactory(...);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
public function getIterator(): \Traversable
|
|
29
|
+
{
|
|
30
|
+
yield from ($this->iteratorFactory)();
|
|
31
|
+
}
|
|
32
|
+
}
|