redis-di 脚手架
为 RDI 生成配置文件
用法
Usage: redis-di scaffold [OPTIONS]
选项
-
log_level
:- 类型:Choice(['TRACE', 'DEBUG', 'INFO', 'WARNING', 'ERROR', 'CRITICAL'])
- 违约:
info
- 用法:
--log-level -l
-
db_type
(必填):- 类型: Choice([<DbType.CASSANDRA: 'cassandra'>, <DbType.MARIADB: 'mariadb'>, <DbType.MONGODB: 'mongodb'>, <DbType.MYSQL: 'mysql'>, <DbType.ORACLE: 'oracle'>, <DbType.POSTGRESQL: 'postgresql'>, <DbType.SQLSERVER: 'sqlserver'>])
- 违约:
none
- 用法:
--db-type
DB 类型
输出到目录或 stdout
-
directory
:- 类型:STRING
- 违约:
none
- 用法:
--dir
包含 RDI 配置的目录
-
preview
:- 类型:STRING
- 违约:
none
- 用法:
--preview
将基架配置文件的内容打印到 CLI 输出
-
help
:- 类型: BOOL
- 违约:
false
- 用法:
--help
显示此消息并退出。
CLI 帮助
Usage: redis-di scaffold [OPTIONS]
Generates configuration files for RDI
Options:
-l, --log-level [TRACE|DEBUG|INFO|WARNING|ERROR|CRITICAL]
[default: INFO]
--db-type [cassandra|mariadb|mongodb|mysql|oracle|postgresql|sqlserver]
DB type [required]
Output formats: [mutually_exclusive, required]
Output to directory or stdout
--dir TEXT Directory containing RDI configuration
--preview TEXT Print the content of the scaffolded config
file to CLI output
--help Show this message and exit.