From 9e9bc8a144667a6b7debfd4f0c7a31ff0e11493a Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sun, 6 Sep 2026 02:27:06 +0300 Subject: feat: manage multiple ssh machines from one client (#3670) --- src/cli/spec.rs | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/cli/spec.rs') diff --git a/src/cli/spec.rs b/src/cli/spec.rs index cf23e320..2da0a25c 100644 --- a/src/cli/spec.rs +++ b/src/cli/spec.rs @@ -2,6 +2,9 @@ use std::io::Write; use clap::{Arg, ArgAction, ArgGroup, Command, ValueHint}; +mod completion; +mod machine; + pub(super) fn command() -> Command { let command = Command::new("herdr") .about("terminal workspace manager for AI coding agents") @@ -25,11 +28,12 @@ pub(super) fn command() -> Command { .action(ArgAction::SetTrue) .help("Print version and exit"), ) - .subcommand(completion_command()) + .subcommand(completion::command()) .subcommand(update_command()) .subcommand(status_command()) .subcommand(config_command()) .subcommand(channel_command()) + .subcommand(machine::command()) .subcommand(server_command()) .subcommand(api_command()) .subcommand(workspace_command()) @@ -108,19 +112,6 @@ fn write_requested_help( Ok(true) } -fn completion_command() -> Command { - Command::new("completion") - .visible_alias("completions") - .about("Generate shell completion scripts") - .arg( - Arg::new("shell") - .value_name("SHELL") - .required(true) - .value_parser(super::completion::SUPPORTED_SHELLS) - .help("Shell to generate completions for"), - ) -} - fn update_command() -> Command { Command::new("update") .about("Download and install the latest version") -- cgit v1.2.3