Motivations
the current configuration file-based startup mode is slightly complex for users and not rust enough for a binary package.
we don't plan to provide highly interactive features like a console interface for now, but we can provide command-line interactive capabilities similar to a CLI.
Solution
- use
clap to make binary files become a CLI tool.
- compatible with previous configuration file startup logic
- users can see help information by executing the CLI command, and can start a task using a command like
cli --source=xx --target=xx --do_tbs=xx
the CLI will simplifies some configurations; instead, configuration files serve as a more advanced configuration mode.