You are here

function key_drush_save_options in Key 8

Same name and namespace in other branches
  1. 7.3 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()
drush_key_save in drush/key_save.drush.inc
Save a key.
key_drush_command in drush/key.drush.inc
Implements hook_drush_command().

File

drush/key.drush.inc, line 144
Drush 8 commands.

Code

function key_drush_save_options() {
  return [
    'label' => [
      'description' => dt('The human-readable label of the key.'),
    ],
    'description' => [
      'description' => dt('A short description of the key.'),
    ],
    'key-type' => [
      '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' => [
      'description' => dt('Settings specific to the defined key type, in JSON format.'),
    ],
    'key-provider' => [
      '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' => [
      'description' => dt('Settings specific to the defined key provider, in JSON format.'),
    ],
    'key-input' => [
      'description' => dt('The key input method.'),
      'example-value' => 'none,text_field',
    ],
    'key-input-settings' => [
      '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.',
  ];
}