aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorakbash <akbash@herdr.dev>2026-08-19 20:39:24 +0300
committerGitHub <noreply@github.com>2026-08-19 20:39:24 +0300
commite3c3d443584b629803a73ad66e0e298943c7f201 (patch)
tree639abd8b3d8f03d07d05eef47ca025cafaeda02b /src/main.rs
parent5203a5dc0f39a082938ea0f9836d6257ea7e155f (diff)
fix(cli): exit quietly when output pipes close (#2996)
refs #2994 Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index 36b1d021..56dbb8df 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -614,6 +614,7 @@ fn main() -> io::Result<()> {
}
if args.iter().any(|a| a == "--help" || a == "-h") {
+ platform::begin_cli_output();
println!("herdr — terminal workspace manager for AI coding agents");
println!();
println!("Usage: herdr [options]");
@@ -729,16 +730,19 @@ fn main() -> io::Result<()> {
}
if args.iter().any(|a| a == "--version" || a == "-V") {
+ platform::begin_cli_output();
println!("herdr {}", crate::build_info::version());
return Ok(());
}
if args.iter().any(|a| a == "--default-config") {
+ platform::begin_cli_output();
print!("{DEFAULT_CONFIG}");
return Ok(());
}
if args.iter().any(|a| a == "--skill") {
+ platform::begin_cli_output();
print!("{SKILL}");
return Ok(());
}