feat: add workflow toolkit and runtime support
This commit is contained in:
+24
-1
@@ -12,7 +12,10 @@ pub struct Cli {
|
||||
#[derive(Debug, Subcommand)]
|
||||
pub enum Commands {
|
||||
// 启动服务
|
||||
Service,
|
||||
Service {
|
||||
#[command(subcommand)]
|
||||
command: Option<ServiceAction>,
|
||||
},
|
||||
// 配置渠道
|
||||
Channel {
|
||||
#[command(subcommand)]
|
||||
@@ -20,6 +23,26 @@ pub enum Commands {
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Subcommand)]
|
||||
pub enum ServiceAction {
|
||||
/// 前台运行服务
|
||||
Run,
|
||||
/// 后台启动服务
|
||||
Start,
|
||||
/// 停止后台服务
|
||||
Stop,
|
||||
/// 重启后台服务
|
||||
Restart,
|
||||
/// 查看服务运行状态
|
||||
Status,
|
||||
/// 查看后台服务日志
|
||||
Logs {
|
||||
/// 输出最后多少行日志
|
||||
#[arg(short, long, default_value_t = 80)]
|
||||
lines: usize,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Debug, Subcommand)]
|
||||
pub enum Channels {
|
||||
// 微信渠道配置
|
||||
|
||||
Reference in New Issue
Block a user