From 2691a8783a7ff01272ecf133cd61fefae8357a9d Mon Sep 17 00:00:00 2001 From: Nathanael DEMACON Date: Wed, 28 Feb 2024 20:00:06 +0100 Subject: [PATCH] fix(cli): change template default value to connect to the host's name, not the hostname Closes #74 Signed-off-by: Nathanael DEMACON --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index a67dd09..83980ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,7 +30,7 @@ struct Args { #[arg( short, long, - default_value = "ssh {{#if user}}{{user}}@{{/if}}{{destination}}{{#if port}} -p {{port}}{{/if}}" + default_value = "ssh \"{{{name}}}\"{{#if port}} -p {{port}}{{/if}}" )] template: String,