aboutsummaryrefslogtreecommitdiff
path: root/src/cli/spec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/spec.rs')
-rw-r--r--src/cli/spec.rs19
1 files changed, 5 insertions, 14 deletions
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")