summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2023-03-20 23:20:48 +0800
committerGitHub <noreply@github.com>2023-03-20 23:20:48 +0800
commit601a5134d047bda03415432aa3250802e2e15554 (patch)
treed32795aabdc360ff37fa4b9ec1a1657df49f337f /src/main.rs
parent19ce62ab769b74a8e417cd1213b7711a5ed55638 (diff)
downloadaichat-601a5134d047bda03415432aa3250802e2e15554.tar.gz
feat: add `--dry-run` (#83)
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index f8d2eeb..af772ca 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -41,6 +41,9 @@ fn main() -> Result<()> {
.for_each(|(name, _)| println!("{}", name));
exit(0);
}
+ if cli.dry_run {
+ config.write().dry_run = true;
+ }
let role = match &cli.role {
Some(name) => Some(
config