/** * Returns the available options for your command * * More info at https://github.com/c9s/php-GetOptionKit */ public static function option_kit() { $specs = Command::option_kit(); // DO NOT DELETE THIS LINE // no options yet... return $specs; // DO NOT DELETE }
/** * Returns the available options for your command * * The flag 'h|help' is inherited from the base GR\Command class, * so you don't need to define it. Otherwise, you define your options * here in the form: * * $specs->add("x|xray", "Description of xray option") ; * * where 'x' is the short form (-x) and 'xray' is the long * form (--xray). * * Detailed spec for defining options: * v|verbose flag option (with boolean value true) * d|dir: option requires a value (MUST require) * d|dir+ option with multiple values. * d|dir? option with optional value * dir:=s option with type constraint of string * dir:=string option with type constraint of string * dir:=i option with type constraint of integer * dir:=integer option with type constraint of integer * d single character only option * dir long option name * * More info at https://github.com/c9s/php-GetOptionKit */ public static function option_kit() { $break = "\n" . str_repeat(' ', 27); // use this to break descriptions into multiple lines $specs = Command::option_kit(); // DO NOT DELETE THIS LINE $specs->add("clobber", "Disregard any safeguards and anonymize the given database."); $specs->add("n|no-backup", "Do not back up database before anonymizing"); // $specs->add("backup-to:", "Directory to put backup in. Defaults to PHP's sys_get_temp_dir()"); $specs->add("u|username:"******"MySQL User.{$break}If run from a Drupal or Wordpress root, will attempt to retrieve{$break}this value from site config"); $specs->add("p|password:"******"Flag to spec password for MySQL.{$break}The tool will prompt for the password after command input"); $specs->add("host:", "MySQL Host.{$break}Defaults to localhost, or if run from a Drupal or Wordpress root,{$break}will attempt to retrieve this value from site config"); $specs->add("t|type:", "Database Type [drupal|wordpress].{$break}If not given, the tool makes an intelligent guess{$break}based on the your current directory."); $specs->add("d|domain?", "Client's email domain. Defaults to giantrabbit.com."); $specs->add("a|alias?", "Client's email alias or your email username. Defaults to the user initiating the command. {$break}(eg 'ecomod' or 'bwilhelm')"); //-------------------------------------------------------++ return $specs; // DO NOT DELETE }
public static function option_kit() { $specs = Command::option_kit(); $specs->add('u|user?', "User to own files. Defaults to the user who initiated the command."); $specs->add('g|group?', "Group to own files. Defaults to giantrabbit."); $specs->add("d|directory?", "Root directory of Drupal/Wordpress install. Defaults to current directory."); $specs->add("a|additional-site-files+", "Files or Directories other than sites/*/files or wp-content/uploads that should be owned by www-data"); $specs->add("w|web-user?", "(optional) User under which the web process runs. Defaults to www-data"); return $specs; }
/** * Returns the available options for your command * * The flag 'h|help' is inherited from the base GR\Command class, * so you don't need to define it. Otherwise, you define your options * here in the form: * * $specs->add("x|xray", "Description of xray option") ; * * where 'x' is the short form (-x) and 'xray' is the long * form (--xray). * * Detailed spec for defining options: * v|verbose flag option (with boolean value true) * d|dir: option requires a value (MUST require) * d|dir+ option with multiple values. * d|dir? option with optional value * dir:=s option with type constraint of string * dir:=string option with type constraint of string * dir:=i option with type constraint of integer * dir:=integer option with type constraint of integer * d single character only option * dir long option name * * More info at https://github.com/c9s/php-GetOptionKit */ public static function option_kit() { $specs = Command::option_kit(); // DO NOT DELETE THIS LINE $specs->add("b|bucket?", "S3 Bucket from which to retrieve backup"); $specs->add("e|endpoint?", "S3 Endpoint"); $specs->add("i|id?", "AWS Access Key ID"); $specs->add("p|prefix?", "Prefix to filter results in bucket"); $specs->add("r|root?", "Local root directory of site"); $specs->add("s|secret?", "AWS Secret Access Key"); $specs->add("exclude-files", "Don't restore files directories"); $specs->add('keep-schedules', "Don't disable Backup and Migrate schedules after restoring database"); $specs->add("no-fix-definer", "Don't run `gr fix-definer` on MySQL backup before importing"); $specs->add("no-prompts", "Execute command with no confirmation prompts. Useful for running in automated processes."); return $specs; // DO NOT DELETE }
/** * Returns the available options for your command * * The flag 'h|help' is inherited from the base GR\Command class, * so you don't need to define it. Otherwise, you define your options * here in the form: * * $spec->add("x|xray", "Description of xray option") ; * * where 'x' is the short form (-x) and 'xray' is the long * form (--xray). * * Detailed spec for defining options: * v|verbose flag option (with boolean value true) * d|dir: option requires a value (MUST require) * d|dir+ option with multiple values. * d|dir? option with optional value * dir:=s option with type constraint of string * dir:=string option with type constraint of string * dir:=i option with type constraint of integer * dir:=integer option with type constraint of integer * d single character only option * dir long option name * * More info at https://github.com/c9s/php-GetOptionKit */ public static function option_kit() { $specs = Command::option_kit(); // DO NOT DELETE THIS LINE $specs->add('tap', 'Report test execution progress in TAP format.'); $specs->add('testdox', 'Report test execution progress in TestDox format.'); $specs->add('colors', 'Use colors in output.'); $specs->add('stop-on-error', 'Stop execution upon first error.'); $specs->add('stop-on-failure', 'Stop execution upon first error or failure.'); $specs->add('stop-on-skipped', 'Stop execution upon first skipped test.'); $specs->add('stop-on-incomplete', 'Stop execution upon first incomplete test.'); $specs->add('strict', 'Run tests in strict mode.'); $specs->add('v|verbose', 'Output more verbose information.'); $specs->add('debug', 'Display debugging information during test execution.'); return $specs; // DO NOT DELETE }
/** * Returns the available options for your command * * The flag 'h|help' is inherited from the base GR\Command class, * so you don't need to define it. Otherwise, you define your options * here in the form: * * $specs->add("x|xray", "Description of xray option") ; * * where 'x' is the short form (-x) and 'xray' is the long * form (--xray). * * Detailed spec for defining options: * v|verbose flag option (with boolean value true) * d|dir: option requires a value (MUST require) * d|dir+ option with multiple values. * d|dir? option with optional value * dir:=s option with type constraint of string * dir:=string option with type constraint of string * dir:=i option with type constraint of integer * dir:=integer option with type constraint of integer * d single character only option * dir long option name * * More info at https://github.com/c9s/php-GetOptionKit */ public static function option_kit() { $break = "\n" . str_repeat(' ', 27); // use this to break descriptions into multiple lines $specs = Command::option_kit(); // DO NOT DELETE THIS LINE // replace this area with your own options --------------++ $specs->add("f|foo", "Option foo is a flag"); // $specs->add("b|bar:", "(REQUIRED) bar takes a value"); // //-------------------------------------------------------++ return $specs; // DO NOT DELETE }
/** * Returns the available options for your command * * The flag 'h|help' is inherited from the base GR\Command class, * so you don't need to define it. Otherwise, you define your options * here in the form: * * $specs->add("x|xray", "Description of xray option") ; * * where 'x' is the short form (-x) and 'xray' is the long * form (--xray). * * Detailed spec for defining options: * v|verbose flag option (with boolean value true) * d|dir: option requires a value (MUST require) * d|dir+ option with multiple values. * d|dir? option with optional value * dir:=s option with type constraint of string * dir:=string option with type constraint of string * dir:=i option with type constraint of integer * dir:=integer option with type constraint of integer * d single character only option * dir long option name * * More info at https://github.com/c9s/php-GetOptionKit */ public static function option_kit() { $specs = Command::option_kit(); // DO NOT DELETE THIS LINE $specs->add("o|output:", "Output to this file name or php://stdout for stdout"); return $specs; // DO NOT DELETE }