X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FPreflight%2FPreflightArgsInterface.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FPreflight%2FPreflightArgsInterface.php;h=8f744c79a80dac3739494c08d4fa76c90a750813;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/src/Preflight/PreflightArgsInterface.php b/vendor/drush/drush/src/Preflight/PreflightArgsInterface.php new file mode 100644 index 000000000..8f744c79a --- /dev/null +++ b/vendor/drush/drush/src/Preflight/PreflightArgsInterface.php @@ -0,0 +1,69 @@ + 'methodName'. + * The 'option' string should begin with the appropriate number + * of dashes (one or two, as desired), and should end with a '=' + * if the option requires a value. + */ + public function optionsWithValues(); + + /** + * Copy any applicable arguments into the provided configuration + * object, as appropriate. + * + * @param ConfigInterface $config The configuration object to inject data into + */ + public function applyToConfig(ConfigInterface $config); + + /** + * Return all of the args from the inputs that were NOT processed + * by the ArgsPreprocessor (anything not listed in optionsWithValues). + */ + public function args(); + + /** + * Return the path to this application's executable ($argv[0]). + */ + public function applicationPath(); + + /** + * Add one argument to the end of the list returned by the `args()` method. + * + * @param string $arg One argument + */ + public function addArg($arg); + + /** + * Add everything in the provided array to the list returned by `args()` + * + * @param $args + */ + public function passArgs($args); + + /** + * Return any '@alias' that may have appeared before the argument + * holding the command name. + */ + public function alias(); + + /** + * Returns 'true' if an '@alias' was set. + */ + public function hasAlias(); + + /** + * Set an alias. Should always begin with '@'. + * + * @param string $alias The alias name '@site' + */ + public function setAlias($alias); +}