X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=vendor%2Fdrush%2Fdrush%2Fsrc%2FCommands%2FOptionsCommands.php;fp=vendor%2Fdrush%2Fdrush%2Fsrc%2FCommands%2FOptionsCommands.php;h=707cb89cdc4bff2f603a391d6a847d76253385c5;hb=af6d1fb995500ae68849458ee10d66abbdcfb252;hp=0000000000000000000000000000000000000000;hpb=680c79a86e3ed402f263faeac92e89fb6d9edcc0;p=yaffs-website diff --git a/vendor/drush/drush/src/Commands/OptionsCommands.php b/vendor/drush/drush/src/Commands/OptionsCommands.php new file mode 100644 index 000000000..707cb89cd --- /dev/null +++ b/vendor/drush/drush/src/Commands/OptionsCommands.php @@ -0,0 +1,68 @@ + self::REQ, 'tty' => false]) + { + } + + /** + * @hook option @optionset_get_editor + * @option editor A string of bash which launches user's preferred text editor. Defaults to ${VISUAL-${EDITOR-vi}}. + * @option bg Run editor in the background. Does not work with editors such as `vi` that run in the terminal. + */ + public function optionsetGetEditor($options = ['editor' => '', 'bg' => false]) + { + } + + /** + * @hook option @optionset_ssh + * @option ssh-options A string appended to ssh command during rsync, sql-sync, etc. + */ + public function optionsetSsh($options = ['ssh-options' => self::REQ]) + { + } + + /** + * @hook option @optionset_sql + * @option database The DB connection key if using multiple connections in settings.php. + * @option db-url A Drupal 6 style database URL. + * @option target The name of a target within the specified database connection. Defaults to default + */ + public function optionsetSql($options = ['database' => 'default', 'target' => 'default', 'db-url' => self::REQ]) + { + } + + /** + * @hook option @optionset_table_selection + * @option skip-tables-key A key in the $skip_tables array. @see example.drush.yml + * @option structure-tables-key A key in the $structure_tables array. @see example.drush.yml + * @option tables-key A key in the $tables array. + * @option skip-tables-list A comma-separated list of tables to exclude completely. + * @option structure-tables-list A comma-separated list of tables to include for structure, but not data. + * @option tables-list A comma-separated list of tables to transfer. + */ + public function optionsetTableSelection($options = [ + 'skip-tables-key' => self::REQ, + 'structure-tables-key' => self::REQ, + 'tables-key' => self::REQ, + 'skip-tables-list' => self::REQ, + 'structure-tables-list' => self::REQ, + 'tables-list' => self::REQ]) + { + } +}