aboutsummaryrefslogtreecommitdiff
path: root/src/client
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/client
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/client')
-rw-r--r--src/client/endpoint/catalog.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/endpoint/catalog.rs b/src/client/endpoint/catalog.rs
index e65d1e9e..b1812ce7 100644
--- a/src/client/endpoint/catalog.rs
+++ b/src/client/endpoint/catalog.rs
@@ -11,7 +11,7 @@ const CATALOG_VERSION: u32 = 1;
const SELECTION_VERSION: u32 = 1;
const MAX_CATALOG_BYTES: u64 = 64 * 1024;
const MAX_PROFILES: usize = 64;
-const MAX_LABEL_BYTES: usize = 128;
+pub(crate) const MAX_LABEL_BYTES: usize = 128;
const MAX_TARGET_BYTES: usize = 1024;
static NEXT_TEMP_FILE: AtomicU64 = AtomicU64::new(1);