From 763841212826142ce248ef3d94524424c6316b0b Mon Sep 17 00:00:00 2001 From: sigoden Date: Fri, 23 Feb 2024 13:15:18 +0800 Subject: feat: support `-e/--execute` to execute shell command (#318) --- src/cli.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 7e1229d..808602e 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -12,6 +12,9 @@ pub struct Cli { /// Create or reuse a session #[clap(short = 's', long)] pub session: Option>, + /// Execute commands using natural language + #[clap(short = 'e', long)] + pub execute: bool, /// Attach files to the message to be sent. #[clap(short = 'f', long, num_args = 1.., value_name = "FILE")] pub file: Option>, @@ -43,6 +46,7 @@ pub struct Cli { #[clap(long)] pub list_sessions: bool, /// Input text + #[clap(trailing_var_arg = true)] text: Vec, } -- cgit v1.2.3