From 9f210e973834700d14c6c0283ed750ed5b038e8b Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Sat, 9 May 2026 23:16:24 +0300 Subject: chore: enable clippy linting --- src/main.rs | 97 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 48 insertions(+), 49 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index ee2c30e4..c35a4084 100644 --- a/src/main.rs +++ b/src/main.rs @@ -243,57 +243,56 @@ fn main() -> io::Result<()> { println!(" herdr integration ..."); println!(); println!("Common commands:"); - println!( - " {:<32} {}", - "herdr", "Launch or attach to the persistent session" - ); - println!( - " {:<32} {}", - "herdr status [server|client]", "Show local client and running server status" - ); - println!( - " {:<32} {}", - "herdr update", "Download and install the latest version" - ); - println!( - " {:<32} {}", - "herdr server stop", "Stop the running server via the API socket" - ); - println!( - " {:<32} {}", - "herdr server reload-config", "Reload config.toml in the running server" - ); - println!( - " {:<32} {}", - "herdr workspace ", "Workspace helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr tab ", "Tab helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr pane ", "Pane control helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr wait ", "Blocking wait helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr session ", "Manage named persistent sessions" - ); - println!( - " {:<32} {}", - "herdr integration ", "Manage built-in agent integrations" - ); + for (command, description) in [ + ("herdr", "Launch or attach to the persistent session"), + ( + "herdr status [server|client]", + "Show local client and running server status", + ), + ("herdr update", "Download and install the latest version"), + ( + "herdr server stop", + "Stop the running server via the API socket", + ), + ( + "herdr server reload-config", + "Reload config.toml in the running server", + ), + ( + "herdr workspace ", + "Workspace helpers over the socket API", + ), + ("herdr tab ", "Tab helpers over the socket API"), + ( + "herdr pane ", + "Pane control helpers over the socket API", + ), + ( + "herdr wait ", + "Blocking wait helpers over the socket API", + ), + ( + "herdr session ", + "Manage named persistent sessions", + ), + ( + "herdr integration ", + "Manage built-in agent integrations", + ), + ] { + println!(" {command:<32} {description}"); + } println!(); println!("Advanced commands:"); - println!(" {:<32} {}", "herdr server", "Run as headless server"); - println!( - " {:<32} {}", - "herdr client", "Connect to a running server as a thin client" - ); + for (command, description) in [ + ("herdr server", "Run as headless server"), + ( + "herdr client", + "Connect to a running server as a thin client", + ), + ] { + println!(" {command:<32} {description}"); + } println!(); println!("Options:"); println!(" --no-session Run monolithically (no server/client, escape hatch)"); -- cgit v1.2.3