aboutsummaryrefslogtreecommitdiff
path: root/src/cli/spec/machine.rs
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@hey.com>2026-09-27 19:06:33 +0200
committerGitHub <noreply@github.com>2026-09-27 20:06:33 +0300
commit316d176768e99bd80b81696c4e1f310f0643e744 (patch)
treed723283bc10f95d47dfc148136dbdd93d9d6c677 /src/cli/spec/machine.rs
parentfff6c820aa45f4eabb9b2e0456326dc74cca5a25 (diff)
feat: default machine add label to the ssh host (#4678)
* feat: default machine add label to the ssh host `herdr machine add <ssh-target>` no longer requires `--label`. Without one, the machine is named after the SSH host with any `user@` prefix removed, so `herdr machine add dev@workbox` shows up as `workbox`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Apply suggestion from @greptile-apps[bot] Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * fix: make default machine labels unique per session and handle ssh urls --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Ogulcan Celik <ogulcancelik@gmail.com>
Diffstat (limited to 'src/cli/spec/machine.rs')
-rw-r--r--src/cli/spec/machine.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cli/spec/machine.rs b/src/cli/spec/machine.rs
index 82bc4c5d..19a34088 100644
--- a/src/cli/spec/machine.rs
+++ b/src/cli/spec/machine.rs
@@ -30,9 +30,9 @@ pub(super) fn command() -> Command {
.required(true),
)
.arg(
- option("label", "LABEL")
- .required(true)
- .help("Set the machine label shown in the sidebar"),
+ option("label", "LABEL").help(
+ "Set the machine label shown in the sidebar (defaults to the SSH host, or host/session)",
+ ),
)
.arg(
option("remote-session", "NAME")