wp-studio 1.7.8-beta2 → 1.7.8-beta4
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 +54 -1
- package/assets/demo.gif +0 -0
- package/dist/cli/{_events-BRGCap7g.mjs → _events-C2dFSpKE.mjs} +2 -2
- package/dist/cli/{certificate-manager-Dd4zv2_k.mjs → certificate-manager-BMngpL-s.mjs} +12 -4
- package/dist/cli/{index-9Oz-0bqF.mjs → index-CkFXAp-n.mjs} +5 -5
- package/dist/cli/{index-CT4S2538.mjs → index-odShRBgM.mjs} +171 -117
- package/dist/cli/{login-D4E3GoXe.mjs → login-BeT1uKwW.mjs} +2 -2
- package/dist/cli/{logout-DE-RoshK.mjs → logout-BFQJBJD0.mjs} +2 -2
- package/dist/cli/main.mjs +3 -2
- package/dist/cli/proxy-daemon.mjs +1 -1
- package/dist/cli/{resume-DLoXmzNG.mjs → resume-D_K0QEl5.mjs} +1 -1
- package/dist/cli/{set-B8YYUENH.mjs → set-C5l116L7.mjs} +2 -2
- package/dist/cli/{set-B0L-QiXT.mjs → set-DzcR6sFr.mjs} +2 -2
- package/dist/cli/{status-DEOAA0yx.mjs → status-CbXnAskz.mjs} +1 -1
- package/dist/cli/{wp-CobSX6C6.mjs → wp-CUKyZNTP.mjs} +1 -1
- package/dist/cli/wp-files/latest/available-site-translations.json +1 -1
- package/dist/cli/wp-files/latest/languages/admin-de_DE.l10n.php +2 -2
- package/dist/cli/wp-files/latest/languages/admin-network-de_DE.l10n.php +1 -1
- package/dist/cli/wp-files/latest/languages/admin-pl_PL.l10n.php +2 -2
- package/dist/cli/wp-files/latest/languages/de_DE-0cc31205f20441b3df1d1b46100f6b8d.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-0ce75ad2f775d1cac9696967d484808c.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-0eebe503220d4a00341eb011b92769b4.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-17179a5f2930647c89151e365f843b6e.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-1780a2033cf98d69ce13c2e5c8510004.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-1a0cd6a7128913b15c1a10dd68951869.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-1bba9045bb07c89671c88a3f328548e8.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-1c4303f02ff93b290e9faad991eeb06f.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-1d17475f620f63a92e2c5d2681c51ee8.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-2617ce121227a46077ede6c69aa9fcb5.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-270d72d1cff17227d37f3244759cbecb.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-28b3c3d595952907e08d98287077426c.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-2b390f85a3048c5b4255fb45960b6514.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-2c5d274ea625dd91556554ad82901529.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-320f4ad9792aaa6dedb1e71cbdf85d57.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-440127dd25bde48a531ded36f33e927b.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-49c6d4acf36cf3aca9f0b2a77617304f.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-4a38fe1c0c45989e44682ba6109d9f46.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-4bfa11da57ff2600004bb500368247f4.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-50278328b502f4eb3f2b8b7ab49324a1.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-5251f7623766a714c8207c7edb938628.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-529362903a5a05b34b06b5e793fb4cf8.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-569e85ef168299eb8c8f24d8ef8c8a78.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-6025add6bde16aaeb12787d250f9b414.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-60d06fac6f98e8e8f0ec5a945738b660.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-68f2cec7514bf8563c723a4d675fcfe6.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7233008897033de5ee0d14f86a42a65a.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7289286ed59e90a8f36ae797df62220b.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7436b7ee9e4f11ac0d618d8cc886eb66.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-77fdfadaf2e1ca3a027d1956b910bc50.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7b74c8457eaa7fcc50db41b431f8a003.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7c90cd4398ee2d9d3628c387a87a70e5.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7d5ca435e60d92f024d46c9257aaa0f7.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-7f13c36c641b114bf18cd0bcc9ecc7e0.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-803bf1ce2131e13efc590c1bc47851fc.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-81c889563f09dd13de1701135dc62941.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-81d6f084cb273e02e15b01bd9ece87f7.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-8240df461220d1d3a028a9a4c5652a5b.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-8860e58c20c6a2ab5876a0f07be43bd9.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-93882e8f9976382d7f724ac595ed7151.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-947c76bb5095da30e16668eec15406b2.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-9b256ea9cd54df92095e04c76758ceb0.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-9c3519f4870fac83dc0dbf18cb6bd4c4.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-9d47a87c240c1d10701cd6a02b28aa1b.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-a25d1cc7bf7ca0b4e114f6bea64943f4.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-a2796e57f680e25d84c4b352ee6d7280.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-a9dc201dcd011fe71849743133052619.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-aabfce98c410957228848dc581e3c420.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-ac23eee47530ac63a1178c827db28087.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-bf0f094965d3d4a95b47babcb35fc136.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-bf23b24175490c2e46aaf92ff6a0c70f.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-c31d5f185753910c14afebc6deb2ce24.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-ca28138671823450e87dfd354f7afc6b.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-daeb084aab42199d26393a56c3465bc0.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-e2791ba830489d23043be8650a22a22b.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-e2e4c4b80f3adf2c70b431bfdb1b4872.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-e53526243551a102928735ec9eed4edf.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-f575f481034e90e21d832e415fd95fcf.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-f70806bf0c7d62f2908bd5a1c3fe4efc.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE-f8f49d9fc4a9cf7d78ec99285417bd9c.json +1 -1
- package/dist/cli/wp-files/latest/languages/de_DE.l10n.php +27 -27
- package/dist/cli/wp-files/latest/languages/pl_PL-0cc31205f20441b3df1d1b46100f6b8d.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-0eebe503220d4a00341eb011b92769b4.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-1c4303f02ff93b290e9faad991eeb06f.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-1d17475f620f63a92e2c5d2681c51ee8.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-2b390f85a3048c5b4255fb45960b6514.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-4a38fe1c0c45989e44682ba6109d9f46.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-4bfa11da57ff2600004bb500368247f4.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-50278328b502f4eb3f2b8b7ab49324a1.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-5251f7623766a714c8207c7edb938628.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-529362903a5a05b34b06b5e793fb4cf8.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-569e85ef168299eb8c8f24d8ef8c8a78.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-6025add6bde16aaeb12787d250f9b414.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-7436b7ee9e4f11ac0d618d8cc886eb66.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-77fdfadaf2e1ca3a027d1956b910bc50.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-7b74c8457eaa7fcc50db41b431f8a003.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-7d5ca435e60d92f024d46c9257aaa0f7.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-81d6f084cb273e02e15b01bd9ece87f7.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-8240df461220d1d3a028a9a4c5652a5b.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-9b256ea9cd54df92095e04c76758ceb0.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-9c3519f4870fac83dc0dbf18cb6bd4c4.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-9d47a87c240c1d10701cd6a02b28aa1b.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-a9dc201dcd011fe71849743133052619.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-aabfce98c410957228848dc581e3c420.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-ca28138671823450e87dfd354f7afc6b.json +1 -1
- package/dist/cli/wp-files/latest/languages/pl_PL-e2e4c4b80f3adf2c70b431bfdb1b4872.json +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/patches/archiver+7.0.1.patch +14 -0
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/.php-cs-fixer.php +0 -20
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/README.md +0 -94
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/RenderedString.php +0 -51
- package/dist/cli/wp-files/sqlite-command/vendor/mustache/mustache/src/compat.php +0 -282
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/.typos.toml +0 -14
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/AGENTS.md +0 -121
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/proxy.py +0 -5
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/start.sh +0 -19
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/bundle/rmccue/requests/scripts/proxy/stop.sh +0 -10
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/Path.php +0 -260
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/WP_CLI/ShutdownHandler.php +0 -329
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli-config.json +0 -218
- package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/schemas/wp-cli.example.yml +0 -55
- /package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/{codecov.yml → tests/data/expand_globs/bar.ab1} +0 -0
package/dist/cli/wp-files/sqlite-command/vendor/wp-cli/wp-cli/php/commands/src/CLI_Command.php
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
use Composer\Semver\Comparator;
|
|
4
4
|
use WP_CLI\Completions;
|
|
5
5
|
use WP_CLI\Formatter;
|
|
6
|
-
use WP_CLI\Path;
|
|
7
6
|
use WP_CLI\Process;
|
|
8
7
|
use WP_CLI\Utils;
|
|
9
8
|
|
|
@@ -32,18 +31,9 @@ use WP_CLI\Utils;
|
|
|
32
31
|
* Success: Cache cleared.
|
|
33
32
|
*
|
|
34
33
|
* @when before_wp_load
|
|
35
|
-
*
|
|
36
|
-
* @phpstan-type GitHubRelease object{tag_name: string, assets: array<object{browser_download_url: string}>}
|
|
37
|
-
*
|
|
38
|
-
* @phpstan-type UpdateOffer array{version: string, update_type: string, package_url: string, status: string, requires_php: string}
|
|
39
34
|
*/
|
|
40
35
|
class CLI_Command extends WP_CLI_Command {
|
|
41
36
|
|
|
42
|
-
/**
|
|
43
|
-
* Memory limit threshold for warnings (512M in bytes).
|
|
44
|
-
*/
|
|
45
|
-
private const MEMORY_LIMIT_WARNING_THRESHOLD = 536870912;
|
|
46
|
-
|
|
47
37
|
private function command_to_array( $command ) {
|
|
48
38
|
$dump = [
|
|
49
39
|
'name' => $command->get_name(),
|
|
@@ -52,11 +42,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
52
42
|
'hook' => $command->get_hook(),
|
|
53
43
|
];
|
|
54
44
|
|
|
55
|
-
$alias = $command->get_alias();
|
|
56
|
-
if ( $alias ) {
|
|
57
|
-
$dump['alias'] = $alias;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
45
|
foreach ( $command->get_subcommands() as $subcommand ) {
|
|
61
46
|
$dump['subcommands'][] = $this->command_to_array( $subcommand );
|
|
62
47
|
}
|
|
@@ -90,7 +75,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
90
75
|
* * Shell information.
|
|
91
76
|
* * PHP binary used.
|
|
92
77
|
* * PHP binary version.
|
|
93
|
-
* * PHP memory limit.
|
|
94
78
|
* * php.ini configuration file used (which is typically different than web).
|
|
95
79
|
* * WP-CLI root dir: where WP-CLI is installed (if non-Phar install).
|
|
96
80
|
* * WP-CLI global config: where the global config YAML file is located.
|
|
@@ -119,25 +103,25 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
119
103
|
* Shell: /usr/bin/zsh
|
|
120
104
|
* PHP binary: /usr/bin/php
|
|
121
105
|
* PHP version: 7.1.12-1+ubuntu16.04.1+deb.sury.org+1
|
|
122
|
-
* PHP memory limit: 512M
|
|
123
106
|
* php.ini used: /etc/php/7.1/cli/php.ini
|
|
124
107
|
* WP-CLI root dir: phar://wp-cli.phar
|
|
125
108
|
* WP-CLI packages dir: /home/person/.wp-cli/packages/
|
|
126
109
|
* WP-CLI global config:
|
|
127
110
|
* WP-CLI project config:
|
|
128
111
|
* WP-CLI version: 1.5.0
|
|
129
|
-
*
|
|
130
|
-
* @param string[] $args Positional arguments. Unused.
|
|
131
|
-
* @param array{format: string} $assoc_args Associative arguments.
|
|
132
112
|
*/
|
|
133
|
-
public function info( $
|
|
134
|
-
$
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
php_uname(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
113
|
+
public function info( $_, $assoc_args ) {
|
|
114
|
+
// php_uname() $mode argument was only added with PHP 7.0+. Fall back to
|
|
115
|
+
// entire string for older versions.
|
|
116
|
+
$system_os = PHP_MAJOR_VERSION < 7
|
|
117
|
+
? php_uname()
|
|
118
|
+
: sprintf(
|
|
119
|
+
'%s %s %s %s',
|
|
120
|
+
php_uname( 's' ),
|
|
121
|
+
php_uname( 'r' ),
|
|
122
|
+
php_uname( 'v' ),
|
|
123
|
+
php_uname( 'm' )
|
|
124
|
+
);
|
|
141
125
|
|
|
142
126
|
$shell = getenv( 'SHELL' );
|
|
143
127
|
if ( ! $shell && Utils\is_windows() ) {
|
|
@@ -153,15 +137,12 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
153
137
|
$packages_dir = null;
|
|
154
138
|
}
|
|
155
139
|
|
|
156
|
-
$memory_limit = ini_get( 'memory_limit' );
|
|
157
|
-
|
|
158
140
|
if ( Utils\get_flag_value( $assoc_args, 'format' ) === 'json' ) {
|
|
159
141
|
$info = [
|
|
160
142
|
'system_os' => $system_os,
|
|
161
143
|
'shell' => $shell,
|
|
162
144
|
'php_binary_path' => $php_bin,
|
|
163
145
|
'php_version' => PHP_VERSION,
|
|
164
|
-
'php_memory_limit' => $memory_limit,
|
|
165
146
|
'php_ini_used' => get_cfg_var( 'cfg_file_path' ),
|
|
166
147
|
'mysql_binary_path' => Utils\get_mysql_binary_path(),
|
|
167
148
|
'mysql_version' => Utils\get_mysql_version(),
|
|
@@ -169,25 +150,20 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
169
150
|
'wp_cli_dir_path' => WP_CLI_ROOT,
|
|
170
151
|
'wp_cli_vendor_path' => WP_CLI_VENDOR_DIR,
|
|
171
152
|
'wp_cli_phar_path' => defined( 'WP_CLI_PHAR_PATH' ) ? WP_CLI_PHAR_PATH : '',
|
|
172
|
-
'wp_cli_packages_dir_path' => $packages_dir
|
|
173
|
-
'wp_cli_cache_dir_path' =>
|
|
174
|
-
'global_config_path' =>
|
|
175
|
-
'project_config_path' =>
|
|
153
|
+
'wp_cli_packages_dir_path' => $packages_dir,
|
|
154
|
+
'wp_cli_cache_dir_path' => Utils\get_cache_dir(),
|
|
155
|
+
'global_config_path' => $runner->global_config_path,
|
|
156
|
+
'project_config_path' => $runner->project_config_path,
|
|
176
157
|
'wp_cli_version' => WP_CLI_VERSION,
|
|
177
158
|
];
|
|
178
159
|
|
|
179
|
-
WP_CLI::line(
|
|
160
|
+
WP_CLI::line( json_encode( $info ) );
|
|
180
161
|
} else {
|
|
181
|
-
/**
|
|
182
|
-
* @var string $cfg_file_path
|
|
183
|
-
*/
|
|
184
|
-
$cfg_file_path = get_cfg_var( 'cfg_file_path' );
|
|
185
162
|
WP_CLI::line( "OS:\t" . $system_os );
|
|
186
163
|
WP_CLI::line( "Shell:\t" . $shell );
|
|
187
164
|
WP_CLI::line( "PHP binary:\t" . $php_bin );
|
|
188
165
|
WP_CLI::line( "PHP version:\t" . PHP_VERSION );
|
|
189
|
-
WP_CLI::line( "
|
|
190
|
-
WP_CLI::line( "php.ini used:\t" . $cfg_file_path );
|
|
166
|
+
WP_CLI::line( "php.ini used:\t" . get_cfg_var( 'cfg_file_path' ) );
|
|
191
167
|
WP_CLI::line( "MySQL binary:\t" . Utils\get_mysql_binary_path() );
|
|
192
168
|
WP_CLI::line( "MySQL version:\t" . Utils\get_mysql_version() );
|
|
193
169
|
WP_CLI::line( "SQL modes:\t" . implode( ',', Utils\get_sql_modes() ) );
|
|
@@ -200,77 +176,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
200
176
|
WP_CLI::line( "WP-CLI project config:\t" . $runner->project_config_path );
|
|
201
177
|
WP_CLI::line( "WP-CLI version:\t" . WP_CLI_VERSION );
|
|
202
178
|
}
|
|
203
|
-
|
|
204
|
-
// Emit a warning if the memory limit is set to a low value.
|
|
205
|
-
$this->check_memory_limit( $memory_limit );
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* Checks if the PHP memory limit is too low and emits a warning if needed.
|
|
210
|
-
*
|
|
211
|
-
* @param string $memory_limit The current memory limit value from ini_get().
|
|
212
|
-
*/
|
|
213
|
-
private function check_memory_limit( $memory_limit ) {
|
|
214
|
-
// If memory limit is -1 (unlimited), no warning needed.
|
|
215
|
-
if ( '-1' === $memory_limit ) {
|
|
216
|
-
return;
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
// Convert memory limit string (e.g., "256M", "1G") to bytes.
|
|
220
|
-
$limit_bytes = $this->convert_to_bytes( $memory_limit );
|
|
221
|
-
|
|
222
|
-
// Warn if limit is below 512M.
|
|
223
|
-
// This is a reasonable threshold for CLI operations.
|
|
224
|
-
if ( $limit_bytes > 0 && $limit_bytes < self::MEMORY_LIMIT_WARNING_THRESHOLD ) {
|
|
225
|
-
WP_CLI::warning(
|
|
226
|
-
sprintf(
|
|
227
|
-
'PHP memory limit is set to %s. This may be too low for some WP-CLI operations. Consider increasing it to at least 512M or setting it to -1 (unlimited) for CLI usage.',
|
|
228
|
-
$memory_limit
|
|
229
|
-
)
|
|
230
|
-
);
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
/**
|
|
235
|
-
* Converts a memory limit string to bytes.
|
|
236
|
-
*
|
|
237
|
-
* @param string $value The memory limit value (e.g., "256M", "1G", "512K", "2.5G").
|
|
238
|
-
* @return int The value in bytes, or -1 if unlimited.
|
|
239
|
-
*/
|
|
240
|
-
private function convert_to_bytes( $value ) {
|
|
241
|
-
$value = trim( $value );
|
|
242
|
-
|
|
243
|
-
if ( '-1' === $value ) {
|
|
244
|
-
return -1;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
// Handle empty string or invalid values.
|
|
248
|
-
if ( empty( $value ) ) {
|
|
249
|
-
return 0;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
$last = strtolower( $value[ strlen( $value ) - 1 ] );
|
|
253
|
-
|
|
254
|
-
// Extract numeric value before converting.
|
|
255
|
-
if ( ! is_numeric( $last ) ) {
|
|
256
|
-
$numeric_value = (float) substr( $value, 0, -1 );
|
|
257
|
-
} else {
|
|
258
|
-
$numeric_value = (float) $value;
|
|
259
|
-
$last = '';
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
switch ( $last ) {
|
|
263
|
-
case 'g':
|
|
264
|
-
$numeric_value *= 1024;
|
|
265
|
-
// Fall through.
|
|
266
|
-
case 'm':
|
|
267
|
-
$numeric_value *= 1024;
|
|
268
|
-
// Fall through.
|
|
269
|
-
case 'k':
|
|
270
|
-
$numeric_value *= 1024;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
return (int) $numeric_value;
|
|
274
179
|
}
|
|
275
180
|
|
|
276
181
|
/**
|
|
@@ -279,13 +184,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
279
184
|
* Queries the GitHub releases API. Returns available versions if there are
|
|
280
185
|
* updates available, or success message if using the latest release.
|
|
281
186
|
*
|
|
282
|
-
* Unauthenticated requests to the GitHub API are rate limited to 60 per hour
|
|
283
|
-
* per IP address. If you are experiencing rate limit issues, you can generate
|
|
284
|
-
* a GitHub personal access token and set the GITHUB_TOKEN environment variable
|
|
285
|
-
* before running this command. Authenticated requests have a higher rate limit
|
|
286
|
-
* of 5,000 per hour. The token only needs public repository read access (no
|
|
287
|
-
* specific scopes required for public data).
|
|
288
|
-
*
|
|
289
187
|
* ## OPTIONS
|
|
290
188
|
*
|
|
291
189
|
* [--patch]
|
|
@@ -329,16 +227,9 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
329
227
|
* | 0.24.1 | patch | https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar |
|
|
330
228
|
* +---------+-------------+-------------------------------------------------------------------------------+
|
|
331
229
|
*
|
|
332
|
-
* # Check for update using a GitHub token to increase rate limit.
|
|
333
|
-
* $ GITHUB_TOKEN=ghp_... wp cli check-update
|
|
334
|
-
* Success: WP-CLI is at the latest version.
|
|
335
|
-
*
|
|
336
230
|
* @subcommand check-update
|
|
337
|
-
*
|
|
338
|
-
* @param string[] $args Positional arguments. Unused.
|
|
339
|
-
* @param array{patch?: bool, minor?: bool, major?: bool, field?: string, fields?: string, format: string} $assoc_args Associative arguments.
|
|
340
231
|
*/
|
|
341
|
-
public function check_update( $
|
|
232
|
+
public function check_update( $_, $assoc_args ) {
|
|
342
233
|
$updates = $this->get_updates( $assoc_args );
|
|
343
234
|
|
|
344
235
|
if ( $updates ) {
|
|
@@ -368,13 +259,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
368
259
|
*
|
|
369
260
|
* Only works for the Phar installation mechanism.
|
|
370
261
|
*
|
|
371
|
-
* Unauthenticated requests to the GitHub API are rate limited to 60 per hour
|
|
372
|
-
* per IP address. If you are experiencing rate limit issues, you can generate
|
|
373
|
-
* a GitHub personal access token and set the GITHUB_TOKEN environment variable
|
|
374
|
-
* before running this command. Authenticated requests have a higher rate limit
|
|
375
|
-
* of 5,000 per hour. The token only needs public repository read access (no
|
|
376
|
-
* specific scopes required for public data).
|
|
377
|
-
*
|
|
378
262
|
* ## OPTIONS
|
|
379
263
|
*
|
|
380
264
|
* [--patch]
|
|
@@ -406,28 +290,13 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
406
290
|
* Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
|
|
407
291
|
* New version works. Proceeding to replace.
|
|
408
292
|
* Success: Updated WP-CLI to 0.24.1.
|
|
409
|
-
*
|
|
410
|
-
* # Update CLI using a GitHub token to increase rate limit.
|
|
411
|
-
* $ GITHUB_TOKEN=ghp_... wp cli update
|
|
412
|
-
* You are currently using WP-CLI version 0.24.0. Would you like to update to 0.24.1? [y/n] y
|
|
413
|
-
* Downloading from https://github.com/wp-cli/wp-cli/releases/download/v0.24.1/wp-cli-0.24.1.phar...
|
|
414
|
-
* New version works. Proceeding to replace.
|
|
415
|
-
* Success: Updated WP-CLI to 0.24.1.
|
|
416
|
-
*
|
|
417
|
-
* @param string[] $args Positional arguments. Unused.
|
|
418
|
-
* @param array{patch?: bool, minor?: bool, major?: bool, stable?: bool, nightly?: bool, yes?: bool, insecure?: bool} $assoc_args Associative arguments.
|
|
419
293
|
*/
|
|
420
|
-
public function update( $
|
|
421
|
-
if ( !
|
|
294
|
+
public function update( $_, $assoc_args ) {
|
|
295
|
+
if ( ! Utils\inside_phar() ) {
|
|
422
296
|
WP_CLI::error( 'You can only self-update Phar files.' );
|
|
423
297
|
}
|
|
424
298
|
|
|
425
|
-
|
|
426
|
-
* @var string[] $argv
|
|
427
|
-
*/
|
|
428
|
-
$argv = $_SERVER['argv'];
|
|
429
|
-
|
|
430
|
-
$old_phar = (string) realpath( $argv[0] );
|
|
299
|
+
$old_phar = realpath( $_SERVER['argv'][0] );
|
|
431
300
|
|
|
432
301
|
if ( ! is_writable( $old_phar ) ) {
|
|
433
302
|
WP_CLI::error( sprintf( '%s is not writable by current user.', $old_phar ) );
|
|
@@ -449,9 +318,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
449
318
|
|
|
450
319
|
$updates = $this->get_updates( $assoc_args );
|
|
451
320
|
|
|
452
|
-
/**
|
|
453
|
-
* @phpstan-var UpdateOffer|null $newest
|
|
454
|
-
*/
|
|
455
321
|
$newest = $this->array_find(
|
|
456
322
|
$updates,
|
|
457
323
|
static function ( $update ) {
|
|
@@ -490,7 +356,7 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
490
356
|
$this->validate_hashes( $temp, $sha512_url, $md5_url );
|
|
491
357
|
|
|
492
358
|
$allow_root = WP_CLI::get_runner()->config['allow-root'] ? '--allow-root' : '';
|
|
493
|
-
$php_binary =
|
|
359
|
+
$php_binary = Utils\get_php_binary();
|
|
494
360
|
$process = Process::create( "{$php_binary} $temp --info {$allow_root}" );
|
|
495
361
|
$result = $process->run();
|
|
496
362
|
if ( 0 !== $result->return_code || false === stripos( $result->stdout, 'WP-CLI version' ) ) {
|
|
@@ -528,9 +394,10 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
528
394
|
* @param string $sha512_url URL to sha512 hash.
|
|
529
395
|
* @param string $md5_url URL to md5 hash.
|
|
530
396
|
*
|
|
397
|
+
* @return void
|
|
531
398
|
* @throws \WP_CLI\ExitException
|
|
532
399
|
*/
|
|
533
|
-
private function validate_hashes( $file, $sha512_url, $md5_url )
|
|
400
|
+
private function validate_hashes( $file, $sha512_url, $md5_url ) {
|
|
534
401
|
$algos = [
|
|
535
402
|
'sha512' => $sha512_url,
|
|
536
403
|
'md5' => $md5_url,
|
|
@@ -538,7 +405,7 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
538
405
|
|
|
539
406
|
foreach ( $algos as $algo => $url ) {
|
|
540
407
|
$response = Utils\http_request( 'GET', $url );
|
|
541
|
-
if ( '20' !== substr(
|
|
408
|
+
if ( '20' !== substr( $response->status_code, 0, 2 ) ) {
|
|
542
409
|
WP_CLI::log( "Couldn't access $algo hash for release (HTTP code {$response->status_code})." );
|
|
543
410
|
continue;
|
|
544
411
|
}
|
|
@@ -580,21 +447,10 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
580
447
|
$response = Utils\http_request( 'GET', $url, null, $headers, $options );
|
|
581
448
|
|
|
582
449
|
if ( ! $response->success || 200 !== $response->status_code ) {
|
|
583
|
-
|
|
584
|
-
if ( 403 === $response->status_code ) {
|
|
585
|
-
$error_message .= ' This is due to GitHub API rate limiting.';
|
|
586
|
-
if ( false === $github_token ) {
|
|
587
|
-
$error_message .= ' Try using a GITHUB_TOKEN environment variable to authenticate with GitHub and get a higher rate limit.';
|
|
588
|
-
$error_message .= ' See https://docs.github.com/en/rest/overview/resources-in-the-rest-api#rate-limiting for more information.';
|
|
589
|
-
}
|
|
590
|
-
}
|
|
591
|
-
WP_CLI::error( $error_message );
|
|
450
|
+
WP_CLI::error( sprintf( 'Failed to get latest version (HTTP code %d).', $response->status_code ) );
|
|
592
451
|
}
|
|
593
452
|
|
|
594
|
-
|
|
595
|
-
* @phpstan-var GitHubRelease[] $release_data
|
|
596
|
-
*/
|
|
597
|
-
$release_data = json_decode( $response->body, false );
|
|
453
|
+
$release_data = json_decode( $response->body );
|
|
598
454
|
|
|
599
455
|
$updates = [
|
|
600
456
|
'major' => false,
|
|
@@ -623,13 +479,7 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
623
479
|
continue;
|
|
624
480
|
}
|
|
625
481
|
|
|
626
|
-
$package_url
|
|
627
|
-
|
|
628
|
-
/**
|
|
629
|
-
* WP-CLI manifest.json data.
|
|
630
|
-
*
|
|
631
|
-
* @var object{requires_php?: string}|null $manifest_data
|
|
632
|
-
*/
|
|
482
|
+
$package_url = null;
|
|
633
483
|
$manifest_data = null;
|
|
634
484
|
|
|
635
485
|
foreach ( $release->assets as $asset ) {
|
|
@@ -646,12 +496,7 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
646
496
|
$response = Utils\http_request( 'GET', $asset->browser_download_url, null, $headers, $options );
|
|
647
497
|
|
|
648
498
|
if ( $response->success ) {
|
|
649
|
-
|
|
650
|
-
* WP-CLI manifest.json data.
|
|
651
|
-
*
|
|
652
|
-
* @var object{requires_php?: string}|null $manifest_data
|
|
653
|
-
*/
|
|
654
|
-
$manifest_data = json_decode( $response->body, false );
|
|
499
|
+
$manifest_data = json_decode( $response->body );
|
|
655
500
|
}
|
|
656
501
|
}
|
|
657
502
|
}
|
|
@@ -710,11 +555,6 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
710
555
|
$response = Utils\http_request( 'GET', 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.manifest.json', null, $headers, $options );
|
|
711
556
|
|
|
712
557
|
if ( $response->success ) {
|
|
713
|
-
/**
|
|
714
|
-
* WP-CLI manifest.json data.
|
|
715
|
-
*
|
|
716
|
-
* @var object{requires_php?: string}|null $manifest_data
|
|
717
|
-
*/
|
|
718
558
|
$manifest_data = json_decode( $response->body );
|
|
719
559
|
}
|
|
720
560
|
|
|
@@ -727,7 +567,7 @@ class CLI_Command extends WP_CLI_Command {
|
|
|
727
567
|
'version' => $nightly_version,
|
|
728
568
|
'update_type' => 'nightly',
|
|
729
569
|
'package_url' => 'https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli-nightly.phar',
|
|
730
|
-
'status' => '
|
|
570
|
+
'status' => 'unvailable',
|
|
731
571
|
'requires_php' => $manifest_data->requires_php,
|
|
732
572
|
];
|
|
733
573
|
} else {
|