2.22. Hammer 默认值

默认管理

Usage:
    hammer defaults [OPTIONS] SUBCOMMAND [ARG] ...

Parameters:
 SUBCOMMAND                    Subcommand
 [ARG] ...                     Subcommand arguments

Subcommands:
 add                           Add a default parameter to config
 delete                        Delete a default param
 list                          List all the default parameters
 providers                     List all the providers

Options:
 -h, --help                    Print help

2.22.1. Hammer 默认值添加

为配置添加默认参数

Usage:
    hammer defaults add [OPTIONS]

Options:
 --param-name VALUE            The name of the default option (e.g. organization_id)
 --param-value VALUE           The value for the default option
 --provider VALUE              The name of the provider providing the value. For list available providers see
                               `hammer defaults providers`
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.22.2. Hammer 默认删除

删除默认参数

Usage:
    hammer defaults delete [OPTIONS]

Options:
 --param-name VALUE            The name of the default option
 -h, --help                    Print help

Option details:
  Here you can find option types and the value an option can accept:

  BOOLEAN             One of true/false, yes/no, 1/0
  DATETIME            Date and time in YYYY-MM-DD HH:MM:SS or ISO 8601 format
  ENUM                Possible values are described in the option's description
  FILE                Path to a file
  KEY_VALUE_LIST      Comma-separated list of key=value.
                      JSON is acceptable and preferred way for such parameters
  LIST                Comma separated list of values. Values containing comma should be quoted or escaped with backslash.
                      JSON is acceptable and preferred way for such parameters
  MULTIENUM           Any combination of possible values described in the option's description
  NUMBER              Numeric value. Integer
  SCHEMA              Comma separated list of values defined by a schema.
                      JSON is acceptable and preferred way for such parameters
  VALUE               Value described in the option's description. Mostly simple string

2.22.3. Hammer 默认列表

列出所有默认参数

Usage:
    hammer defaults list [OPTIONS]

Options:
 -h, --help                    Print help

2.22.4. Hammer 默认供应商

列出所有供应商

Usage:
    hammer defaults providers [OPTIONS]

Options:
 -h, --help                    Print help