From 316d176768e99bd80b81696c4e1f310f0643e744 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 27 Sep 2026 19:06:33 +0200 Subject: feat: default machine add label to the ssh host (#4678) * feat: default machine add label to the ssh host `herdr machine add ` 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 * 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 Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Ogulcan Celik --- src/cli/machine.rs | 97 +++++++++++++++++++++++++++++++++++++++--- src/cli/spec/machine.rs | 6 +-- src/client/endpoint/catalog.rs | 2 +- 3 files changed, 94 insertions(+), 11 deletions(-) (limited to 'src') diff --git a/src/cli/machine.rs b/src/cli/machine.rs index 9328347e..52828f75 100644 --- a/src/cli/machine.rs +++ b/src/cli/machine.rs @@ -1,12 +1,12 @@ use serde::Serialize; -use crate::client::endpoint::{EndpointCatalog, ProfileId}; +use crate::client::endpoint::{EndpointCatalog, ProfileId, MAX_LABEL_BYTES}; const HELP: &str = "Usage: herdr machine list [--json] herdr machine status [] [--json] herdr machine reconnect - herdr machine add --label