创建映射规则。
用法
Usage: keep mappings create [OPTIONS]选项
name- 类型:STRING
- 默认值:``
- 用法:
--name <mapping-name>
映射的名称。
description- 类型:STRING
- 默认值:``
- 用法:
--description <mapping-description>
映射的描述。
file- 类型:STRING
- 默认值:``
- 用法:
--file <mapping-file>
映射文件。必须是 CSV 文件。
matchers- 类型:STRING
- 默认值:``
- 用法:
--matchers <mapping-matchers>
映射的匹配器,作为逗号分隔的字符串列表。
priority- 类型:INTEGER RANGE
- 默认值:
0 - 用法:
--priority <priority>
映射的优先级,优先级越高表示此规则将首先执行。
0<=x<=100。help:- 类型:BOOL
- 默认值:
false - 用法:
--help
显示此消息并退出。
CLI 帮助
Usage: keep mappings create [OPTIONS]
Create a mapping rule.
Options:
-n, --name TEXT The name of the mapping. [required]
-d, --description TEXT The description of the mapping.
-f, --file PATH The mapping file. Must be a CSV file.
[required]
-m, --matchers TEXT The matchers of the mapping, as a comma-
separated list of strings. [required]
-p, --priority INTEGER RANGE The priority of the mapping, higher priority
means this rule will execute first.
[0<=x<=100]
--help Show this message and exit.