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.
Files changed (219) hide show
  1. package/README.md +33 -0
  2. package/assets/demo.gif +0 -0
  3. package/dist/cli/{_events-BRGCap7g.mjs → _events-C60cNJ1W.mjs} +1 -1
  4. package/dist/cli/{index-9Oz-0bqF.mjs → index-D9syEMMz.mjs} +4 -4
  5. package/dist/cli/{index-CT4S2538.mjs → index-Ru6CUP6w.mjs} +24 -12
  6. package/dist/cli/{login-D4E3GoXe.mjs → login-C3QlGVbr.mjs} +1 -1
  7. package/dist/cli/{logout-DE-RoshK.mjs → logout-B63eZwJZ.mjs} +1 -1
  8. package/dist/cli/main.mjs +2 -1
  9. package/dist/cli/{resume-DLoXmzNG.mjs → resume-DQT_MK6A.mjs} +1 -1
  10. package/dist/cli/{set-B0L-QiXT.mjs → set-C805heQS.mjs} +1 -1
  11. package/dist/cli/{set-B8YYUENH.mjs → set-CjTbueyB.mjs} +1 -1
  12. package/dist/cli/{status-DEOAA0yx.mjs → status-SnKm1rRP.mjs} +1 -1
  13. package/dist/cli/{wp-CobSX6C6.mjs → wp-D0HZdudM.mjs} +1 -1
  14. package/dist/cli/wp-files/sqlite-command/composer.json +4 -3
  15. package/dist/cli/wp-files/sqlite-command/composer.lock +132 -80
  16. package/dist/cli/wp-files/sqlite-command/vendor/autoload.php +1 -1
  17. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_classmap.php +58 -70
  18. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_namespaces.php +1 -0
  19. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_psr4.php +1 -1
  20. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_real.php +5 -5
  21. package/dist/cli/wp-files/sqlite-command/vendor/composer/autoload_static.php +78 -80
  22. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.json +104 -49
  23. package/dist/cli/wp-files/sqlite-command/vendor/composer/installed.php +29 -16
  24. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/CHANGELOG.md +103 -0
  25. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/Comparator.php +62 -0
  26. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/DateComparator.php +50 -0
  27. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Comparator/NumberComparator.php +78 -0
  28. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/AccessDeniedException.php +19 -0
  29. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Exception/DirectoryNotFoundException.php +19 -0
  30. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Finder.php +851 -0
  31. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Gitignore.php +91 -0
  32. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Glob.php +116 -0
  33. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/CustomFilterIterator.php +61 -0
  34. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DateRangeFilterIterator.php +58 -0
  35. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/DepthRangeFilterIterator.php +48 -0
  36. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/ExcludeDirectoryFilterIterator.php +110 -0
  37. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FileTypeFilterIterator.php +51 -0
  38. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilecontentFilterIterator.php +58 -0
  39. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/FilenameFilterIterator.php +45 -0
  40. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/LazyIterator.php +32 -0
  41. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/MultiplePcreFilterIterator.php +107 -0
  42. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/PathFilterIterator.php +56 -0
  43. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/RecursiveDirectoryIterator.php +134 -0
  44. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SizeRangeFilterIterator.php +57 -0
  45. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/SortableIterator.php +115 -0
  46. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/Iterator/VcsIgnoredFilterIterator.php +173 -0
  47. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/LICENSE +19 -0
  48. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/README.md +14 -0
  49. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/SplFileInfo.php +80 -0
  50. package/dist/cli/wp-files/sqlite-command/vendor/symfony/finder/composer.json +31 -0
  51. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/.gitattributes +8 -0
  52. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/LICENSE +1 -1
  53. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/README.md +76 -0
  54. package/dist/cli/wp-files/sqlite-command/vendor/{mustache → wp-cli}/mustache/composer.json +6 -16
  55. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/mustache/src/Mustache/Autoloader.php +88 -0
  56. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/AbstractCache.php +7 -15
  57. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/FilesystemCache.php +15 -20
  58. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache/NoopCache.php +4 -8
  59. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Cache.php +7 -10
  60. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Compiler.php +87 -144
  61. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Context.php +19 -23
  62. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Engine.php +134 -251
  63. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/InvalidArgumentException.php +2 -6
  64. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/LogicException.php +2 -6
  65. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/RuntimeException.php +2 -6
  66. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/SyntaxException.php +8 -7
  67. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownFilterException.php +7 -7
  68. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownHelperException.php +7 -7
  69. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception/UnknownTemplateException.php +7 -7
  70. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Exception.php +5 -4
  71. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/HelperCollection.php +17 -22
  72. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/LambdaHelper.php +8 -28
  73. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ArrayLoader.php +9 -12
  74. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/CascadingLoader.php +15 -18
  75. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/FilesystemLoader.php +18 -24
  76. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/InlineLoader.php +13 -19
  77. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/MutableLoader.php +7 -4
  78. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/ProductionFilesystemLoader.php +16 -23
  79. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader/StringLoader.php +4 -8
  80. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Loader.php +7 -8
  81. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/AbstractLogger.php +26 -22
  82. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger/StreamLogger.php +20 -25
  83. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Logger.php +37 -13
  84. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Parser.php +93 -100
  85. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source/FilesystemSource.php +7 -11
  86. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Source.php +5 -4
  87. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Template.php +32 -39
  88. package/dist/cli/wp-files/sqlite-command/vendor/{mustache/mustache/src → wp-cli/mustache/src/Mustache}/Tokenizer.php +29 -33
  89. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.actrc +3 -0
  90. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.gitattributes +6 -0
  91. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.mailmap +234 -0
  92. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/README.md +4 -4
  93. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/VERSION +1 -1
  94. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/CHANGELOG.md +0 -65
  95. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/README.md +1 -2
  96. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem +372 -315
  97. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/certificates/cacert.pem.sha256 +1 -1
  98. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/composer.json +5 -7
  99. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Iri.php +18 -20
  100. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Requests.php +1 -1
  101. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Response/Headers.php +1 -1
  102. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Curl.php +1 -5
  103. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Transport/Fsockopen.php +0 -2
  104. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/CaseInsensitiveDictionary.php +0 -12
  105. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/src/Utility/FilteredIterator.php +2 -2
  106. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/composer.json +13 -30
  107. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/dependencies.yml +6 -0
  108. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/manifest.json +1 -1
  109. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Autoloader.php +2 -4
  110. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/AutoloaderStep.php +1 -10
  111. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/CheckRoot.php +2 -20
  112. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/DefineProtectedCommands.php +3 -3
  113. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeFrameworkAutoloader.php +4 -3
  114. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/IncludeRequestsAutoloader.php +3 -4
  115. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeContexts.php +0 -3
  116. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/InitializeLogger.php +1 -1
  117. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LaunchRunner.php +3 -6
  118. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/{RegisterShutdownHandler.php → LoadDispatcher.php} +4 -6
  119. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadRequiredCommand.php +5 -9
  120. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Bootstrap/LoadUtilityFunctions.php +0 -1
  121. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Completions.php +6 -149
  122. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Configurator.php +49 -202
  123. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Admin.php +21 -113
  124. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Auto.php +1 -1
  125. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Cli.php +1 -0
  126. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Context/Frontend.php +1 -0
  127. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CommandFactory.php +26 -63
  128. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/CompositeCommand.php +9 -19
  129. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Dispatcher/Subcommand.php +19 -284
  130. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/DocParser.php +5 -17
  131. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Exception/NonExistentKeyException.php +3 -6
  132. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Extractor.php +54 -30
  133. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Base.php +3 -7
  134. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Comment.php +2 -4
  135. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Post.php +3 -8
  136. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Signup.php +1 -3
  137. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/Site.php +4 -12
  138. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Fetchers/User.php +1 -3
  139. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/FileCache.php +33 -135
  140. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Formatter.php +57 -221
  141. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Inflector.php +4 -4
  142. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/CSV.php +1 -6
  143. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Query.php +1 -3
  144. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Table.php +1 -7
  145. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Iterators/Transform.php +0 -2
  146. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Base.php +0 -15
  147. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Quiet.php +3 -2
  148. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Loggers/Regular.php +3 -4
  149. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/NoOp.php +0 -4
  150. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Process.php +7 -40
  151. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/RequestsLibrary.php +1 -4
  152. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php +234 -795
  153. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisParser.php +26 -116
  154. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/SynopsisValidator.php +1 -1
  155. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Traverser/RecursiveDataStructureTraverser.php +26 -69
  156. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/UpgraderSkin.php +1 -1
  157. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpHttpCacheManager.php +5 -67
  158. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/WpOrgApi.php +3 -3
  159. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/boot-fs.php +2 -2
  160. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/bootstrap.php +2 -5
  161. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/class-wp-cli.php +62 -311
  162. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Alias_Command.php +60 -292
  163. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Cache_Command.php +1 -1
  164. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php +31 -191
  165. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/Help_Command.php +35 -177
  166. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/config-spec.php +4 -28
  167. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils-wp.php +47 -81
  168. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/utils.php +200 -512
  169. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-cli.php +2 -2
  170. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/wp-settings-cli.php +465 -0
  171. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man-params.mustache +4 -0
  172. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/templates/man.mustache +0 -8
  173. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ArgValidationTest.php +74 -0
  174. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/CommandFactoryTest.php +420 -0
  175. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ConfiguratorTest.php +87 -0
  176. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/DocParserTest.php +213 -0
  177. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ExtractorTest.php +293 -0
  178. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/FileCacheTest.php +207 -0
  179. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/HelpTest.php +119 -0
  180. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/InflectorTest.php +37 -0
  181. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/LoggingTest.php +124 -0
  182. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/ProcessTest.php +30 -0
  183. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/SynopsisParserTest.php +194 -0
  184. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/UtilsTest.php +1092 -0
  185. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WPCLITest.php +16 -0
  186. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Iterators/CSVTest.php +109 -0
  187. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/Traversers/RecursiveDataStructureTraverserTest.php +151 -0
  188. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WP_CLI/WpOrgApiTest.php +166 -0
  189. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/WpVersionCompareTest.php +78 -0
  190. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/bootstrap.php +17 -0
  191. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class-win.php +70 -0
  192. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-class.php +70 -0
  193. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function-win.php +19 -0
  194. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/commandfactory-doc_comment-function.php +19 -0
  195. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/bar.ab2 +0 -0
  196. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ab1 +0 -0
  197. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.ac1 +0 -0
  198. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/baz.efg2 +0 -0
  199. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab1 +0 -0
  200. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.ab2 +0 -0
  201. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg1 +0 -0
  202. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/data/expand_globs/foo.efg2 +0 -0
  203. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/tests/mock-requests-transport.php +34 -0
  204. package/dist/cli/wp-files/sqlite-command/version +1 -1
  205. package/package.json +4 -3
  206. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
  207. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
  208. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
  209. package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
  210. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
  211. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
  212. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
  213. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
  214. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
  215. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
  216. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
  217. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
  218. package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
  219. /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,16 @@
1
+ <?php
2
+
3
+ use WP_CLI\Tests\TestCase;
4
+
5
+ class WPCLITest extends TestCase {
6
+
7
+ public function testGetPHPBinary() {
8
+ $this->assertSame( WP_CLI\Utils\get_php_binary(), WP_CLI::get_php_binary() );
9
+ }
10
+
11
+ public function testErrorToString() {
12
+ $this->expectException( 'InvalidArgumentException' );
13
+ $this->expectExceptionMessage( "Unsupported argument type passed to WP_CLI::error_to_string(): 'boolean'" );
14
+ WP_CLI::error_to_string( true );
15
+ }
16
+ }
@@ -0,0 +1,109 @@
1
+ <?php
2
+
3
+ namespace WP_CLI\Tests\CSV;
4
+
5
+ use WP_CLI\Tests\TestCase;
6
+ use WP_CLI\Iterators\CSV;
7
+
8
+ class CSVTest extends TestCase {
9
+
10
+ public function test_it_can_iterate_over_a_csv_file() {
11
+ $filename = $this->create_csv_file(
12
+ array(
13
+ array( 'foo', 'bar' ),
14
+ array( 'baz', 'qux' ),
15
+ )
16
+ );
17
+
18
+ $expected = array(
19
+ 0 => array(
20
+ 'foo' => 'baz',
21
+ 'bar' => 'qux',
22
+ ),
23
+ );
24
+
25
+ foreach ( new CSV( $filename ) as $index => $row ) {
26
+ $this->assertEquals( $expected[ $index ], $row );
27
+ }
28
+ }
29
+
30
+ public function test_it_can_iterate_over_a_csv_file_with_custom_delimiter() {
31
+ $filename = $this->create_csv_file(
32
+ array(
33
+ array( 'foo|bar' ),
34
+ array( 'baz|qux' ),
35
+ ),
36
+ '|'
37
+ );
38
+
39
+ $expected = array(
40
+ 0 => array(
41
+ 'foo|bar' => 'baz|qux',
42
+ ),
43
+ );
44
+
45
+ foreach ( new CSV( $filename, '|' ) as $index => $row ) {
46
+ $this->assertEquals( $expected[ $index ], $row );
47
+ }
48
+ }
49
+
50
+ public function test_it_can_iterate_over_a_csv_file_with_multiple_lines_in_a_value() {
51
+ $filename = $this->create_csv_file(
52
+ array(
53
+ array( 'foo', "bar\nbaz" ),
54
+ array( 'qux', "quux\nquuz" ),
55
+ )
56
+ );
57
+
58
+ $expected = array(
59
+ 0 => array(
60
+ 'foo' => 'qux',
61
+ "bar\nbaz" => "quux\nquuz",
62
+ ),
63
+ );
64
+
65
+ foreach ( new CSV( $filename ) as $index => $row ) {
66
+ $this->assertEquals( $expected[ $index ], $row );
67
+ }
68
+ }
69
+
70
+ public function test_it_can_iterate_over_a_csv_file_with_multiple_lines_and_comma_in_a_value() {
71
+ $filename = $this->create_csv_file(
72
+ array(
73
+ array( 'foo', "bar\nbaz,qux" ),
74
+ array( 'quux', "quuz\ncorge,grault" ),
75
+ )
76
+ );
77
+
78
+ $expected = array(
79
+ 0 => array(
80
+ 'foo' => 'quux',
81
+ "bar\nbaz,qux" => "quuz\ncorge,grault",
82
+ ),
83
+ );
84
+
85
+ foreach ( new CSV( $filename ) as $index => $row ) {
86
+ $this->assertEquals( $expected[ $index ], $row );
87
+ }
88
+ }
89
+
90
+ private function create_csv_file( $data, $delimiter = ',' ) {
91
+ $filename = tempnam( sys_get_temp_dir(), 'wp-cli-tests-' );
92
+
93
+ $fp = fopen( $filename, 'wb' );
94
+
95
+ foreach ( $data as $row ) {
96
+ fputcsv( $fp, $row, $delimiter, '"', '\\' );
97
+ }
98
+
99
+ fclose( $fp );
100
+
101
+ register_shutdown_function(
102
+ function () use ( $filename ) {
103
+ unlink( $filename );
104
+ }
105
+ );
106
+
107
+ return $filename;
108
+ }
109
+ }
@@ -0,0 +1,151 @@
1
+ <?php
2
+
3
+ namespace WP_CLI\Tests\Traverser;
4
+
5
+ use WP_CLI\Tests\TestCase;
6
+ use WP_CLI\Traverser\RecursiveDataStructureTraverser;
7
+
8
+ class RecursiveDataStructureTraverserTest extends TestCase {
9
+
10
+ public function test_it_can_get_a_top_level_array_value() {
11
+ $array = array(
12
+ 'foo' => 'bar',
13
+ );
14
+
15
+ $traverser = new RecursiveDataStructureTraverser( $array );
16
+
17
+ $this->assertEquals( 'bar', $traverser->get( 'foo' ) );
18
+ }
19
+
20
+ public function test_it_can_get_a_top_level_object_value() {
21
+ $object = (object) array(
22
+ 'foo' => 'bar',
23
+ );
24
+
25
+ $traverser = new RecursiveDataStructureTraverser( $object );
26
+
27
+ $this->assertEquals( 'bar', $traverser->get( 'foo' ) );
28
+ }
29
+
30
+ public function test_it_can_get_a_nested_array_value() {
31
+ $array = array(
32
+ 'foo' => array(
33
+ 'bar' => array(
34
+ 'baz' => 'value',
35
+ ),
36
+ ),
37
+ );
38
+
39
+ $traverser = new RecursiveDataStructureTraverser( $array );
40
+
41
+ $this->assertEquals( 'value', $traverser->get( array( 'foo', 'bar', 'baz' ) ) );
42
+ }
43
+
44
+ public function test_it_can_get_a_nested_object_value() {
45
+ $object = (object) array(
46
+ 'foo' => (object) array(
47
+ 'bar' => 'baz',
48
+ ),
49
+ );
50
+
51
+ $traverser = new RecursiveDataStructureTraverser( $object );
52
+
53
+ $this->assertEquals( 'baz', $traverser->get( array( 'foo', 'bar' ) ) );
54
+ }
55
+
56
+ public function test_it_can_set_a_nested_array_value() {
57
+ $array = array(
58
+ 'foo' => array(
59
+ 'bar' => 'baz',
60
+ ),
61
+ );
62
+ $this->assertEquals( 'baz', $array['foo']['bar'] );
63
+
64
+ $traverser = new RecursiveDataStructureTraverser( $array );
65
+ $traverser->update( array( 'foo', 'bar' ), 'new' );
66
+
67
+ $this->assertEquals( 'new', $array['foo']['bar'] );
68
+ }
69
+
70
+ public function test_it_can_set_a_nested_object_value() {
71
+ $object = (object) array(
72
+ 'foo' => (object) array(
73
+ 'bar' => 'baz',
74
+ ),
75
+ );
76
+ $this->assertEquals( 'baz', $object->foo->bar );
77
+
78
+ $traverser = new RecursiveDataStructureTraverser( $object );
79
+ $traverser->update( array( 'foo', 'bar' ), 'new' );
80
+
81
+ $this->assertEquals( 'new', $object->foo->bar );
82
+ }
83
+
84
+ public function test_it_can_update_an_integer_object_value() {
85
+ $object = (object) array(
86
+ 'test_mode' => 0,
87
+ );
88
+ $this->assertEquals( 0, $object->test_mode );
89
+
90
+ $traverser = new RecursiveDataStructureTraverser( $object );
91
+ $traverser->update( array( 'test_mode' ), 1 );
92
+
93
+ $this->assertEquals( 1, $object->test_mode );
94
+ }
95
+
96
+ public function test_it_can_delete_a_nested_array_value() {
97
+ $array = array(
98
+ 'foo' => array(
99
+ 'bar' => 'baz',
100
+ ),
101
+ );
102
+ $this->assertArrayHasKey( 'bar', $array['foo'] );
103
+
104
+ $traverser = new RecursiveDataStructureTraverser( $array );
105
+ $traverser->delete( array( 'foo', 'bar' ) );
106
+
107
+ $this->assertArrayNotHasKey( 'bar', $array['foo'] );
108
+ }
109
+
110
+ public function test_it_can_delete_a_nested_object_value() {
111
+ $object = (object) array(
112
+ 'foo' => (object) array(
113
+ 'bar' => 'baz',
114
+ ),
115
+ );
116
+ $this->assertObjectHasProperty( 'bar', $object->foo );
117
+
118
+ $traverser = new RecursiveDataStructureTraverser( $object );
119
+ $traverser->delete( array( 'foo', 'bar' ) );
120
+
121
+ $this->assertObjectNotHasProperty( 'bar', $object->foo );
122
+ }
123
+
124
+ public function test_it_can_insert_a_key_into_a_nested_array() {
125
+ $array = array(
126
+ 'foo' => array(
127
+ 'bar' => 'baz',
128
+ ),
129
+ );
130
+
131
+ $traverser = new RecursiveDataStructureTraverser( $array );
132
+ $traverser->insert( array( 'foo', 'new' ), 'new value' );
133
+
134
+ $this->assertArrayHasKey( 'new', $array['foo'] );
135
+ $this->assertEquals( 'new value', $array['foo']['new'] );
136
+ }
137
+
138
+ public function test_it_throws_an_exception_when_attempting_to_create_a_key_on_an_invalid_type() {
139
+ $data = 'a string';
140
+ $traverser = new RecursiveDataStructureTraverser( $data );
141
+
142
+ try {
143
+ $traverser->insert( array( 'key' ), 'value' );
144
+ } catch ( \Exception $e ) {
145
+ $this->assertSame( 'a string', $data );
146
+ return;
147
+ }
148
+
149
+ $this->fail( 'Failed to assert that an exception was thrown when inserting a key into a string.' );
150
+ }
151
+ }
@@ -0,0 +1,166 @@
1
+ <?php
2
+
3
+ use WP_CLI\Tests\TestCase;
4
+ use WP_CLI\WpOrgApi;
5
+
6
+ class WpOrgApiTest extends TestCase {
7
+
8
+ public static function set_up_before_class() {
9
+ require_once dirname( __DIR__ ) . '/mock-requests-transport.php';
10
+ }
11
+
12
+ public static function data_http_request_verify() {
13
+ return [
14
+ 'can retrieve core checksums' => [
15
+ 'get_core_checksums',
16
+ [ 'version' => 'trunk' ],
17
+ [],
18
+ 'https://api.wordpress.org/core/checksums/1.0/?version=trunk&locale=en_US',
19
+ [],
20
+ ],
21
+ 'can retrieve core checksums for a specific locale' => [
22
+ 'get_core_checksums',
23
+ [
24
+ 'version' => '4.5',
25
+ 'locale' => 'de_DE',
26
+ ],
27
+ [],
28
+ 'https://api.wordpress.org/core/checksums/1.0/?version=4.5&locale=de_DE',
29
+ [],
30
+ ],
31
+ 'can retrieve plugin checksums' => [
32
+ 'get_plugin_checksums',
33
+ [
34
+ 'plugin' => 'hello-dolly',
35
+ 'version' => '1.0',
36
+ ],
37
+ [],
38
+ 'https://downloads.wordpress.org/plugin-checksums/hello-dolly/1.0.json',
39
+ [],
40
+ ],
41
+ 'can retrieve a core version check' => [
42
+ 'get_core_version_check',
43
+ [],
44
+ [],
45
+ 'https://api.wordpress.org/core/version-check/1.7/?locale=en_US',
46
+ [],
47
+ ],
48
+ 'can retrieve a core version check for a specific locale' => [
49
+ 'get_core_version_check',
50
+ [ 'locale' => 'de_DE' ],
51
+ [],
52
+ 'https://api.wordpress.org/core/version-check/1.7/?locale=de_DE',
53
+ [],
54
+ ],
55
+ 'can retrieve a download offer for core' => [
56
+ 'get_core_download_offer',
57
+ [],
58
+ [],
59
+ 'https://api.wordpress.org/core/version-check/1.7/?locale=en_US',
60
+ [],
61
+ ],
62
+ 'can retrieve a download offer for core for a specific locale' => [
63
+ 'get_core_download_offer',
64
+ [ 'locale' => 'de_DE' ],
65
+ [],
66
+ 'https://api.wordpress.org/core/version-check/1.7/?locale=de_DE',
67
+ [],
68
+ ],
69
+ 'can retrieve info for a plugin' => [
70
+ 'get_plugin_info',
71
+ [ 'plugin' => 'hello-dolly' ],
72
+ [],
73
+ 'https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request%5Blocale%5D=en_US&request%5Bslug%5D=hello-dolly',
74
+ [],
75
+ ],
76
+ 'can retrieve info for a plugin for a specific locale' => [
77
+ 'get_plugin_info',
78
+ [
79
+ 'plugin' => 'hello-dolly',
80
+ 'locale' => 'de_DE',
81
+ ],
82
+ [],
83
+ 'https://api.wordpress.org/plugins/info/1.2/?action=plugin_information&request%5Blocale%5D=de_DE&request%5Bslug%5D=hello-dolly',
84
+ [],
85
+ ],
86
+ 'can retrieve info for a theme' => [
87
+ 'get_theme_info',
88
+ [ 'theme' => 'twentytwenty' ],
89
+ [],
90
+ 'https://api.wordpress.org/themes/info/1.2/?action=theme_information&request%5Blocale%5D=en_US&request%5Bslug%5D=twentytwenty',
91
+ [],
92
+ ],
93
+ 'can retrieve salts' => [
94
+ 'get_salts',
95
+ [],
96
+ [],
97
+ 'https://api.wordpress.org/secret-key/1.1/salt/',
98
+ [],
99
+ ],
100
+ 'defaults to secure requests' => [
101
+ 'get_salts',
102
+ [],
103
+ [],
104
+ 'https://api.wordpress.org/secret-key/1.1/salt/',
105
+ [ 'verify' => true ],
106
+ ],
107
+ 'can explicitly request secure requests' => [
108
+ 'get_salts',
109
+ [],
110
+ [ 'insecure' => false ],
111
+ 'https://api.wordpress.org/secret-key/1.1/salt/',
112
+ [
113
+ 'insecure' => false,
114
+ 'verify' => true,
115
+ ],
116
+ ],
117
+ 'can explicitly request insecure requests' => [
118
+ 'get_salts',
119
+ [],
120
+ [ 'insecure' => true ],
121
+ 'https://api.wordpress.org/secret-key/1.1/salt/',
122
+ [
123
+ 'insecure' => true,
124
+ 'verify' => false,
125
+ ],
126
+ ],
127
+ ];
128
+ }
129
+
130
+ /**
131
+ * @dataProvider data_http_request_verify()
132
+ */
133
+ public function test_http_request_verify( $method, $arguments, $options, $expected_url, $expected_options ) {
134
+ if ( isset( $options['insecure'] ) && true === $options['insecure'] ) {
135
+ // Create temporary file to use as a bad certificate file.
136
+ $bad_cacert_path = tempnam( sys_get_temp_dir(), 'wp-cli-badcacert-pem-' );
137
+ file_put_contents(
138
+ $bad_cacert_path,
139
+ "-----BEGIN CERTIFICATE-----\nasdfasdf\n-----END CERTIFICATE-----\n"
140
+ );
141
+
142
+ $options = array_merge( [ 'verify' => $bad_cacert_path ], $options );
143
+ }
144
+
145
+ $transport_spy = new Mock_Requests_Transport();
146
+ $options['transport'] = $transport_spy;
147
+ $expected_options['transport'] = $transport_spy;
148
+
149
+ $wp_org_api = new WpOrgApi( $options );
150
+ try {
151
+ $wp_org_api->$method( ...array_values( $arguments ) );
152
+ } catch ( RuntimeException $exception ) { // phpcs:ignore Generic.CodeAnalysis.EmptyStatement.DetectedCatch
153
+ }
154
+
155
+ // Undo bad CAcert hack before asserting.
156
+ if ( isset( $bad_cacert_path ) ) {
157
+ unlink( $bad_cacert_path );
158
+ }
159
+
160
+ $this->assertCount( 1, $transport_spy->requests );
161
+ $this->assertEquals( $expected_url, $transport_spy->requests[0]['url'] );
162
+ foreach ( $expected_options as $key => $value ) {
163
+ $this->assertEquals( $value, $transport_spy->requests[0]['options'][ $key ] );
164
+ }
165
+ }
166
+ }
@@ -0,0 +1,78 @@
1
+ <?php
2
+
3
+ use WP_CLI\Tests\TestCase;
4
+ use WP_CLI\Utils;
5
+
6
+ class WPVersionCompareTest extends TestCase {
7
+
8
+ /**
9
+ * Test basic functionality
10
+ */
11
+ public function testBasic() {
12
+ $GLOBALS['wp_version'] = '4.9-alpha-40870-src';
13
+ $this->assertTrue( Utils\wp_version_compare( '4.8', '>=' ) );
14
+ $this->assertFalse( Utils\wp_version_compare( '4.8', '<' ) );
15
+ $this->assertFalse( Utils\wp_version_compare( '4.9-alpha-40870-src', '>' ) );
16
+ $this->assertTrue( Utils\wp_version_compare( '4.9-alpha-40870-src', '=' ) );
17
+ $this->assertFalse( Utils\wp_version_compare( '4.9-alpha-40870-src', '<' ) );
18
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1', '<' ) );
19
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1', '>' ) );
20
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1-45000', '>' ) );
21
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta2-46000', '<' ) );
22
+ $this->assertFalse( Utils\wp_version_compare( '4.9', '>=' ) );
23
+ $this->assertTrue( Utils\wp_version_compare( '4.9', '<' ) );
24
+
25
+ $GLOBALS['wp_version'] = '4.9-beta1-45000';
26
+ $this->assertTrue( Utils\wp_version_compare( '4.8', '>=' ) );
27
+ $this->assertFalse( Utils\wp_version_compare( '4.8', '<' ) );
28
+ $this->assertTrue( Utils\wp_version_compare( '4.9-alpha-40870-src', '>' ) );
29
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1', '<' ) );
30
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1', '>' ) );
31
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1-45000', '>=' ) );
32
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1-45000', '=' ) );
33
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1-45000', '>' ) );
34
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta2-46000', '<' ) );
35
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta2-46000', '>=' ) );
36
+ $this->assertFalse( Utils\wp_version_compare( '4.9', '>=' ) );
37
+ $this->assertTrue( Utils\wp_version_compare( '4.9', '<' ) );
38
+
39
+ $GLOBALS['wp_version'] = '4.9-beta2-46000';
40
+ $this->assertTrue( Utils\wp_version_compare( '4.8', '>=' ) );
41
+ $this->assertFalse( Utils\wp_version_compare( '4.8', '<' ) );
42
+ $this->assertTrue( Utils\wp_version_compare( '4.9-alpha-40870-src', '>' ) );
43
+ $this->assertFalse( Utils\wp_version_compare( '4.9-alpha-40870-src', '=' ) );
44
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1', '<' ) );
45
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1', '>' ) );
46
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1-45000', '>' ) );
47
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta2-45550', '>' ) );
48
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta2-45550', '<' ) );
49
+ $this->assertFalse( Utils\wp_version_compare( '4.9', '>=' ) );
50
+ $this->assertTrue( Utils\wp_version_compare( '4.9', '<' ) );
51
+
52
+ $GLOBALS['wp_version'] = '4.9-rc1-47000';
53
+ $this->assertTrue( Utils\wp_version_compare( '4.8', '>=' ) );
54
+ $this->assertFalse( Utils\wp_version_compare( '4.8', '<' ) );
55
+ $this->assertTrue( Utils\wp_version_compare( '4.9-alpha-40870-src', '>' ) );
56
+ $this->assertFalse( Utils\wp_version_compare( '4.9-alpha-40870-src', '=' ) );
57
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1', '<' ) );
58
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1', '>' ) );
59
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1-45000', '>' ) );
60
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta2-45550', '>' ) );
61
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta2-45550', '<' ) );
62
+ $this->assertTrue( Utils\wp_version_compare( '4.9-rc2', '<' ) );
63
+ $this->assertTrue( Utils\wp_version_compare( '4.9-rc2-48000', '<' ) );
64
+ $this->assertFalse( Utils\wp_version_compare( '4.9', '>=' ) );
65
+ $this->assertTrue( Utils\wp_version_compare( '4.9', '<' ) );
66
+
67
+ $GLOBALS['wp_version'] = '4.9';
68
+ $this->assertTrue( Utils\wp_version_compare( '4.8', '>=' ) );
69
+ $this->assertFalse( Utils\wp_version_compare( '4.8', '<' ) );
70
+ $this->assertTrue( Utils\wp_version_compare( '4.9-alpha-40870-src', '>' ) );
71
+ $this->assertFalse( Utils\wp_version_compare( '4.9-alpha-40870-src', '<' ) );
72
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1-45000', '>' ) );
73
+ $this->assertFalse( Utils\wp_version_compare( '4.9-beta1', '<' ) );
74
+ $this->assertTrue( Utils\wp_version_compare( '4.9-beta1', '>' ) );
75
+ $this->assertTrue( Utils\wp_version_compare( '4.9', '>=' ) );
76
+ $this->assertFalse( Utils\wp_version_compare( '4.9', '<' ) );
77
+ }
78
+ }
@@ -0,0 +1,17 @@
1
+ <?php
2
+
3
+ if ( ! defined( 'WP_CLI_ROOT' ) ) {
4
+ define( 'WP_CLI_ROOT', dirname( __DIR__ ) );
5
+ }
6
+
7
+ if ( file_exists( WP_CLI_ROOT . '/vendor/autoload.php' ) ) {
8
+ define( 'WP_CLI_VENDOR_DIR', WP_CLI_ROOT . '/vendor' );
9
+ } elseif ( file_exists( dirname( dirname( WP_CLI_ROOT ) ) . '/autoload.php' ) ) {
10
+ define( 'WP_CLI_VENDOR_DIR', dirname( dirname( WP_CLI_ROOT ) ) );
11
+ }
12
+
13
+ require_once WP_CLI_VENDOR_DIR . '/autoload.php';
14
+ require_once WP_CLI_ROOT . '/php/utils.php';
15
+ require_once WP_CLI_ROOT . '/bundle/rmccue/requests/src/Autoload.php';
16
+
17
+ \WpOrg\Requests\Autoload::register();
@@ -0,0 +1,70 @@
1
+ <?php
2
+
3
+ /**
4
+ * Basic class
5
+ *
6
+ * ## EXAMPLES
7
+ *
8
+ * # Foo.
9
+ * $ wp foo
10
+ */
11
+ class CommandFactoryTests_Get_Doc_Comment_1_Command_Win extends WP_CLI_Command {
12
+ /**
13
+ * Command1 method
14
+ *
15
+ * ## OPTIONS
16
+ *
17
+ * ## EXAMPLES
18
+ *
19
+ * $ wp foo command1 public
20
+ */
21
+ function command1() {
22
+ }
23
+
24
+ /**
25
+ * Command2 function
26
+ *
27
+ * ## OPTIONS
28
+ *
29
+ * [--path=<path>]
30
+ *
31
+ * ## EXAMPLES
32
+ *
33
+ * $ wp foo command2 --path=/**a/**b/**c/**
34
+ */
35
+
36
+ final
37
+ protected
38
+ static
39
+ function
40
+ command2() {
41
+ }
42
+
43
+ /**
44
+ * Command3 function
45
+ *
46
+ * ## OPTIONS
47
+ *
48
+ * [--path=<path>]
49
+ *
50
+ * ## EXAMPLES
51
+ *
52
+ * $ wp foo command3 --path=/**a/**b/**c/**
53
+ function*/public function command3( $function ) {}
54
+
55
+ function command4() {}
56
+ }
57
+
58
+ /**
59
+ * Basic class
60
+ *
61
+ * ## EXAMPLES
62
+ *
63
+ * # Foo.
64
+ * $ wp foo --final abstract
65
+ class*/abstract class
66
+ CommandFactoryTests_Get_Doc_Comment_2_Command_Win
67
+ extends WP_CLI_Command
68
+ {
69
+ function command1() {}
70
+ }
@@ -0,0 +1,70 @@
1
+ <?php
2
+
3
+ /**
4
+ * Basic class
5
+ *
6
+ * ## EXAMPLES
7
+ *
8
+ * # Foo.
9
+ * $ wp foo
10
+ */
11
+ class CommandFactoryTests_Get_Doc_Comment_1_Command extends WP_CLI_Command {
12
+ /**
13
+ * Command1 method
14
+ *
15
+ * ## OPTIONS
16
+ *
17
+ * ## EXAMPLES
18
+ *
19
+ * $ wp foo command1 public
20
+ */
21
+ function command1() {
22
+ }
23
+
24
+ /**
25
+ * Command2 function
26
+ *
27
+ * ## OPTIONS
28
+ *
29
+ * [--path=<path>]
30
+ *
31
+ * ## EXAMPLES
32
+ *
33
+ * $ wp foo command2 --path=/**a/**b/**c/**
34
+ */
35
+
36
+ final
37
+ protected
38
+ static
39
+ function
40
+ command2() {
41
+ }
42
+
43
+ /**
44
+ * Command3 function
45
+ *
46
+ * ## OPTIONS
47
+ *
48
+ * [--path=<path>]
49
+ *
50
+ * ## EXAMPLES
51
+ *
52
+ * $ wp foo command3 --path=/**a/**b/**c/**
53
+ function*/public function command3( $function ) {}
54
+
55
+ function command4() {}
56
+ }
57
+
58
+ /**
59
+ * Basic class
60
+ *
61
+ * ## EXAMPLES
62
+ *
63
+ * # Foo.
64
+ * $ wp foo --final abstract
65
+ class*/abstract class
66
+ CommandFactoryTests_Get_Doc_Comment_2_Command
67
+ extends WP_CLI_Command
68
+ {
69
+ function command1() {}
70
+ }
@@ -0,0 +1,19 @@
1
+ <?php
2
+
3
+ /**
4
+ * foo
5
+ */
6
+ function commandfactorytests_get_doc_comment_func_1_win( $function = blah ) {
7
+ }
8
+
9
+ /**
10
+ * bar
11
+ function*/function commandfactorytests_get_doc_comment_func_2_win( $function = blah ) {
12
+ }
13
+
14
+ /**
15
+ * /** baz
16
+ */$commandfactorytests_get_doc_comment_func_3_win
17
+ =
18
+ function ( $args ) {
19
+ };