diff vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php @ 0:c75dbcec494b

Initial commit from drush-created site
author Chris Cannam
date Thu, 05 Jul 2018 14:24:15 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php	Thu Jul 05 14:24:15 2018 +0000
@@ -0,0 +1,21 @@
+<?php
+namespace Consolidation\AnnotatedCommand\Options;
+
+use Consolidation\AnnotatedCommand\Parser\CommandInfo;
+use Symfony\Component\Console\Input\InputOption;
+
+/**
+ * Option providers can add options to commands based on the annotations
+ * present in a command.  For example, a command that specifies @fields
+ * will automatically be given --format and --fields options.
+ *
+ * @see AnnotatedCommandFactory::addListener()
+ * @see HookManager::addOptionHook()
+ */
+interface AutomaticOptionsProviderInterface
+{
+    /**
+     * @return InputOption[]
+     */
+    public function automaticOptions(CommandInfo $commandInfo);
+}