1use clap::{Args, Subcommand}; 2 3/// 快取管理參數 4#[derive(Args, Debug)] 5pub struct CacheArgs { 6 #[command(subcommand)] 7 pub action: CacheAction, 8} 9 10/// 快取操作子命令 11#[derive(Subcommand, Debug)] 12pub enum CacheAction { 13 /// 清除所有 Dry-run 快取檔案 14 Clear, 15}