From 0b9c8ead0073221aaf4f1b0a5e01f0c44a61ad0e Mon Sep 17 00:00:00 2001 From: JJ Liebig Date: Sun, 27 Sep 2026 20:46:47 +0200 Subject: feat: simplify ssh machine setup discovery (#4204) --- src/cli/machine.rs | 124 ++++++++++++++++++++++++++++++++++++++++++++---- src/cli/spec/machine.rs | 2 +- 2 files changed, 116 insertions(+), 10 deletions(-) (limited to 'src/cli') diff --git a/src/cli/machine.rs b/src/cli/machine.rs index 52828f75..2459805a 100644 --- a/src/cli/machine.rs +++ b/src/cli/machine.rs @@ -1,3 +1,8 @@ +use std::io::IsTerminal as _; + +use crossterm::event::{Event, KeyCode, KeyEventKind, KeyModifiers}; +use crossterm::style::{Attribute, SetAttribute}; +use crossterm::{cursor, execute, terminal}; use serde::Serialize; use crate::client::endpoint::{EndpointCatalog, ProfileId, MAX_LABEL_BYTES}; @@ -206,7 +211,7 @@ fn reconnect(args: &[String]) -> std::io::Result { struct AddArgs { target: String, label: Option, - session: String, + session: Option, } fn parse_add_args(args: &[String]) -> Result { @@ -249,7 +254,6 @@ fn parse_add_args(args: &[String]) -> Result { "usage: herdr machine add [--label