diff --git a/bin/terminus b/bin/terminus index 51e4f41e6..812361c99 100755 --- a/bin/terminus +++ b/bin/terminus @@ -32,7 +32,7 @@ if (!getenv('TERMINUS_ALLOW_UNSUPPORTED_NEWER_PHP') && version_compare(PHP_VERSI // This variable is automatically managed via updateDependenciesversion() in /RoboFile.php, // which is run after every call to composer update. -$terminusPluginsDependenciesVersion = 'e47112adb1'; +$terminusPluginsDependenciesVersion = 'a6b56bb299'; // Cannot use $_SERVER superglobal since that's empty during phpunit testing // getenv('HOME') isn't set on Windows and generates a Notice. diff --git a/composer.lock b/composer.lock index d055d2e49..ea9947628 100644 --- a/composer.lock +++ b/composer.lock @@ -1375,16 +1375,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.19.1", + "version": "v4.19.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" + "reference": "0ed4c8949a32986043e977dbe14776c14d644c45" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", - "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/0ed4c8949a32986043e977dbe14776c14d644c45", + "reference": "0ed4c8949a32986043e977dbe14776c14d644c45", "shasum": "" }, "require": { @@ -1425,9 +1425,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.2" }, - "time": "2024-03-17T08:10:35+00:00" + "time": "2024-09-17T19:36:00+00:00" }, { "name": "psr/container", @@ -6449,16 +6449,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.2", + "version": "3.10.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", "shasum": "" }, "require": { @@ -6525,7 +6525,7 @@ "type": "open_collective" } ], - "time": "2024-07-21T23:26:44+00:00" + "time": "2024-09-18T10:38:58+00:00" }, { "name": "symfony/config", diff --git a/src/Commands/Site/LabelCommand.php b/src/Commands/Site/LabelCommand.php index e7a05a93a..34d6e2bb0 100644 --- a/src/Commands/Site/LabelCommand.php +++ b/src/Commands/Site/LabelCommand.php @@ -23,7 +23,9 @@ class LabelCommand extends SiteCommand * * @authorize * - * @command site:label + * @command site:label:set + * @alias set-label + * @alias slbl * * @param string $site_name Site name * @param string $label Site label diff --git a/src/Terminus.php b/src/Terminus.php index e32bdb693..22739828a 100644 --- a/src/Terminus.php +++ b/src/Terminus.php @@ -314,6 +314,7 @@ private function addBuiltInCommandsAndHooks() // List of all hooks and commands. Update via 'composer update-class-lists' $this->commands = [ 'Pantheon\\Terminus\\Hooks\\Authorizer', + 'Pantheon\\Terminus\\Hooks\\CommandTracker', 'Pantheon\\Terminus\\Hooks\\RoleValidator', 'Pantheon\\Terminus\\Hooks\\SiteEnvLookup', 'Pantheon\\Terminus\\Commands\\AliasesCommand', diff --git a/tests/Functional/SiteCommandsTest.php b/tests/Functional/SiteCommandsTest.php index 23fb03f47..ab85c7aa0 100644 --- a/tests/Functional/SiteCommandsTest.php +++ b/tests/Functional/SiteCommandsTest.php @@ -128,7 +128,7 @@ public function testSiteInfoNoArgCommand() public function testSiteLabelCommand() { $label = uniqid('test-label'); - $command = sprintf('site:label %s "%s"', $this->getSiteName(), $label); + $command = sprintf('site:label:set %s "%s"', $this->getSiteName(), $label); $this->terminus( $command, ['--yes'] @@ -139,7 +139,7 @@ public function testSiteLabelCommand() $this->assertArrayHasKey('label', $siteInfo); $this->assertEquals($label, $siteInfo['label']); // Change it back - $command = sprintf('site:label %s "%s"', $this->getSiteName(), $this->getSiteName()); + $command = sprintf('site:label:set %s "%s"', $this->getSiteName(), $this->getSiteName()); $this->terminus( $command, ['--yes']