diff --git a/bin/moodle-plugin-ci b/bin/moodle-plugin-ci index 56a2791f..943d16b5 100755 --- a/bin/moodle-plugin-ci +++ b/bin/moodle-plugin-ci @@ -16,7 +16,6 @@ use MoodlePluginCI\Command\AddPluginCommand; use MoodlePluginCI\Command\BehatCommand; use MoodlePluginCI\Command\CodeCheckerCommand; use MoodlePluginCI\Command\CodeFixerCommand; -use MoodlePluginCI\Command\CompletionCommand; use MoodlePluginCI\Command\CopyPasteDetectorCommand; use MoodlePluginCI\Command\CoverallsUploadCommand; use MoodlePluginCI\Command\GruntCommand; @@ -76,7 +75,6 @@ $application->add(new AddPluginCommand(ENV_FILE)); $application->add(new BehatCommand()); $application->add(new CodeCheckerCommand()); $application->add(new CodeFixerCommand()); -$application->add(new CompletionCommand()); $application->add(new CopyPasteDetectorCommand()); $application->add(new CoverallsUploadCommand()); $application->add(new GruntCommand()); diff --git a/composer.json b/composer.json index 27463160..588faff9 100755 --- a/composer.json +++ b/composer.json @@ -80,7 +80,6 @@ "php-parallel-lint/php-console-highlighter": "^1.0.0", "psr/log": "^1.1.4", "nikic/php-parser": "^4.14", - "stecman/symfony-console-completion": "^0.11.0", "marcj/topsort": "^2.0.0", "phpcompatibility/php-compatibility": "dev-develop#2fb82334" }, diff --git a/composer.lock b/composer.lock index f9406189..94865db4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "bf1aaad3b3bedc0798efbd4de221161f", + "content-hash": "1d2ac6ac5fb105f203b889e7fc22b3d6", "packages": [ { "name": "composer/pcre", @@ -1305,55 +1305,6 @@ }, "time": "2022-06-18T07:21:10+00:00" }, - { - "name": "stecman/symfony-console-completion", - "version": "0.11.0", - "source": { - "type": "git", - "url": "https://github.com/stecman/symfony-console-completion.git", - "reference": "a9502dab59405e275a9f264536c4e1cb61fc3518" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/stecman/symfony-console-completion/zipball/a9502dab59405e275a9f264536c4e1cb61fc3518", - "reference": "a9502dab59405e275a9f264536c4e1cb61fc3518", - "shasum": "" - }, - "require": { - "php": ">=5.3.2", - "symfony/console": "~2.3 || ~3.0 || ~4.0 || ~5.0" - }, - "require-dev": { - "phpunit/phpunit": "~4.8.36 || ~5.7 || ~6.4" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "0.10.x-dev" - } - }, - "autoload": { - "psr-4": { - "Stecman\\Component\\Symfony\\Console\\BashCompletion\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Stephen Holdaway", - "email": "stephen@stecman.co.nz" - } - ], - "description": "Automatic BASH completion for Symfony Console Component based applications.", - "support": { - "issues": "https://github.com/stecman/symfony-console-completion/issues", - "source": "https://github.com/stecman/symfony-console-completion/tree/0.11.0" - }, - "time": "2019-11-24T17:03:06+00:00" - }, { "name": "symfony/config", "version": "v5.4.19", diff --git a/src/Command/CompletionCommand.php b/src/Command/CompletionCommand.php deleted file mode 100644 index a8fc6f19..00000000 --- a/src/Command/CompletionCommand.php +++ /dev/null @@ -1,47 +0,0 @@ -setHidden(true); - } - - protected function configureCompletion(CompletionHandler $handler): void - { - // Completion for plugin argument/option to file system paths. - $handler->addHandler(new ShellPathCompletion( - CompletionInterface::ALL_COMMANDS, - 'plugin', - CompletionInterface::ALL_TYPES - )); - - // Completion for moodle option to file system paths. - $handler->addHandler(new ShellPathCompletion( - CompletionInterface::ALL_COMMANDS, - 'moodle', - CompletionInterface::TYPE_OPTION - )); - } -}