duectl

duectl [OPTIONS] COMMAND [ARGS]...

generate-config

Generate config file of current version

duectl generate-config [OPTIONS]

Options

--path <path>

Generated config file path, default: ~/.config/duetector/config.toml.

generate-dynamic-config

Generate config file of current version, including extensions, modules and env variables

duectl generate-dynamic-config [OPTIONS]

Options

--load_current_config <load_current_config>

Wheather load current config file, if True, will use --path as origin config file path, default: True.

--path <path>

Origin config file path, default: ~/.config/duetector/config.toml

--load_env <load_env>

Weather load env variables, Prefix: DUETECTOR_, Separator:__, e.g. DUETECTOR_config__a means config.a, default: True.

--dump_path <dump_path>

File path to dump, default: ~/.config/duetector/config.toml.

make-config

Load config file with env and dump it

duectl make-config [OPTIONS]

Options

--path <path>

Origin config file path, default: ~/.config/duetector/config.toml.

--dump_path <dump_path>

File path to dump, default: ~/.config/duetector/config.toml.

start

Start A bcc monitor and wait for KeyboardInterrupt

duectl start [OPTIONS]

Options

--config <config>

Config file path, default: ~/.config/duetector/config.toml.

--load_env <load_env>

Weather load env variables, Prefix: DUETECTOR_, Separator:__, e.g. DUETECTOR_config__a means config.a, default: True

--dump_when_load <dump_when_load>

Weather dump config when load, default: True.

--config_dump_dir <config_dump_dir>

Config dump dir, default: /tmp

--enable_bcc_monitor <enable_bcc_monitor>

Set false or False to disable bcc monitor, default: True.

--enable_sh_monitor <enable_sh_monitor>

Set false or False to disable shell monitor, default: True.

--enable_sp_monitor <enable_sp_monitor>

Set false or False to disable subprocess monitor, default: True.

--brief <brief>

Print brief when exit, default: True.