Version 1
[yaffs-website] / vendor / consolidation / annotated-command / src / Options / AutomaticOptionsProviderInterface.php
diff --git a/vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php b/vendor/consolidation/annotated-command/src/Options/AutomaticOptionsProviderInterface.php
new file mode 100644 (file)
index 0000000..1349fe7
--- /dev/null
@@ -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);
+}