You are here

function key_drush_save_options in Key 7.3

Same name and namespace in other branches
  1. 8 drush/key.drush.inc \key_drush_save_options()

Define the list of available drush options.

Return value

array The list of drush options.

2 calls to key_drush_save_options()
key_drush_command in drush/key.drush.inc
Implements hook_drush_command().
_drush_key_save in drush/key_save.inc
Save a key.

File

drush/key.drush.inc, line 139

Code

function key_drush_save_options() {
  return array(
    'label' => array(
      'description' => dt('The human-readable label of the key.'),
    ),
    'description' => array(
      'description' => dt('A short description of the key.'),
    ),
    'key-type' => array(
      'description' => dt('The key type. To see a list of available key types, use `drush key-type-list`.'),
      'example-value' => 'authentication,encryption',
    ),
    'key-type-settings' => array(
      'description' => dt('Settings specific to the defined key type, in JSON format.'),
    ),
    'key-provider' => array(
      'description' => dt('The key provider. To see a list of available key providers, use `drush key-provider-list`.'),
      'example-value' => 'config,file',
    ),
    'key-provider-settings' => array(
      'description' => dt('Settings specific to the defined key provider, in JSON format.'),
    ),
    'key-input' => array(
      'description' => dt('The key input method.'),
      'example-value' => 'none,text_field',
    ),
    'key-input-settings' => array(
      'description' => dt('Settings specific to the defined key input, in JSON format.'),
    ),
    'overwrite' => 'Do not fail if the key already exists; overwrite it instead. Default is --no-overwrite.',
  );
}