diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index d7be42c6..13ba5e6f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,8 @@ const NESTED_HERDR_MESSAGES: [&str; 6] = [ mod agent_resume; mod api; mod app; +mod build_info; +mod checksum; mod cli; mod client; mod config; @@ -95,6 +97,11 @@ const DEFAULT_CONFIG: &str = r##"# herdr configuration # "current" for Herdr's process directory, or a fixed path such as "~/Projects". # new_cwd = "follow" +[update] +# Update channel used by background checks and `herdr update`. +# Use "stable" for normal releases or "preview" for opt-in preview builds. +# channel = "stable" + [keys] # Prefix key to enter prefix mode (default: "ctrl+b") # Examples: "ctrl+b", "f12", "esc", "-" @@ -404,9 +411,11 @@ fn main() -> io::Result<()> { println!(" herdr --remote <ssh-target> [--session <name>]"); println!(" herdr session attach <name>"); println!(" herdr update [--handoff]"); + println!(" herdr channel set <stable|preview>"); println!(" herdr server stop"); println!(" herdr server reload-config"); println!(" herdr config <subcommand> ..."); + println!(" herdr channel <subcommand> ..."); println!(" herdr workspace <subcommand> ..."); println!(" herdr worktree <subcommand> ..."); println!(" herdr tab <subcommand> ..."); @@ -429,6 +438,10 @@ fn main() -> io::Result<()> { "Stop the running server via the API socket", ), ( + "herdr channel set <stable|preview>", + "Choose the stable or preview update channel", + ), + ( "herdr server reload-config", "Reload config.toml in the running server", ), @@ -437,6 +450,10 @@ fn main() -> io::Result<()> { "Back up config.toml and remove custom keybindings", ), ( + "herdr channel <subcommand>", + "Manage the stable or preview update channel", + ), + ( "herdr workspace <subcommand>", "Workspace helpers over the socket API", ), @@ -491,7 +508,7 @@ fn main() -> io::Result<()> { } if args.iter().any(|a| a == "--version" || a == "-V") { - println!("herdr {}", env!("CARGO_PKG_VERSION")); + println!("herdr {}", crate::build_info::version()); return Ok(()); } @@ -527,6 +544,7 @@ fn main() -> io::Result<()> { "update", "status", "config", + "channel", "workspace", "worktree", "pane", |
