feat: add workflow toolkit and runtime support

This commit is contained in:
2026-07-06 10:45:19 +08:00
parent efc6fa7067
commit ed7f89d44f
44 changed files with 3770 additions and 127 deletions
+24 -1
View File
@@ -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 {
// 微信渠道配置