diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-09 23:16:24 +0300 |
| commit | 9f210e973834700d14c6c0283ed750ed5b038e8b (patch) | |
| tree | cd8c75755c59fdc47bf71ca6dc34e49ab0258ae6 /src/main.rs | |
| parent | 3a9888cd564dc45d23a7bdd0dba29a6ff1ef48a1 (diff) | |
chore: enable clippy linting
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 97 |
1 files changed, 48 insertions, 49 deletions
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 <subcommand> ..."); 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 <subcommand>", "Workspace helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr tab <subcommand>", "Tab helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr pane <subcommand>", "Pane control helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr wait <subcommand>", "Blocking wait helpers over the socket API" - ); - println!( - " {:<32} {}", - "herdr session <subcommand>", "Manage named persistent sessions" - ); - println!( - " {:<32} {}", - "herdr integration <subcommand>", "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 <subcommand>", + "Workspace helpers over the socket API", + ), + ("herdr tab <subcommand>", "Tab helpers over the socket API"), + ( + "herdr pane <subcommand>", + "Pane control helpers over the socket API", + ), + ( + "herdr wait <subcommand>", + "Blocking wait helpers over the socket API", + ), + ( + "herdr session <subcommand>", + "Manage named persistent sessions", + ), + ( + "herdr integration <subcommand>", + "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)"); |
