This repository was archived by the owner on Jun 26, 2019. It is now read-only.
forked from drush-ops/drush
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OptionsCommands for sharing options providers (drush-ops#2499)
- Loading branch information
Showing
8 changed files
with
56 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
namespace Drush\Commands; | ||
|
||
/* | ||
* Common options providers. Use them by adding an annotation to your method. | ||
*/ | ||
class OptionsCommands { | ||
|
||
/** | ||
* @hook option @optionset_proc_build | ||
* @option ssh-options A string of extra options that will be passed to the ssh command (e.g. "-p 100") | ||
* @option tty Create a tty (e.g. to run an interactive program). | ||
* @option escaped Command string already escaped; do not add additional quoting. | ||
*/ | ||
public function optionset_proc_build() {} | ||
|
||
/** | ||
* @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 optionset_get_editor() {} | ||
|
||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters