aboutsummaryrefslogtreecommitdiffstats
path: root/src/i_insert.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/i_insert.go')
-rw-r--r--src/i_insert.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/i_insert.go b/src/i_insert.go
index 5b769f4..68d674c 100644
--- a/src/i_insert.go
+++ b/src/i_insert.go
@@ -383,8 +383,9 @@ func i_draw_insert_inputs(ui HardUI, in *HostNode, home_dir string) {
case INS_SSH_PRIV,
INS_SSH_JUMP_PRIV,
INS_RDP_JUMP_PRIV + len(in.Drive):
- i_prompt_generic(ui, "Private key: ",
- false, home_dir)
+ i_prompt_generic(ui, "Private key: ", false, home_dir)
+ case INS_SSH_EXEC:
+ i_prompt_generic(ui, "Command (optional): ", false, "")
case INS_SSH_NOTE,
INS_RDP_NOTE + len(in.Drive),
INS_CMD_NOTE,
@@ -514,6 +515,9 @@ func i_draw_insert_ssh(ui HardUI, line int, win Quad,
}
red = false
if line += 2; win.T + line >= win.B { return line }
+ i_draw_text_box(ui, win.T + line, win, "Custom command", in.Exec,
+ INS_SSH_EXEC, false, false)
+ if line += 2; win.T + line >= win.B { return line }
text = "---- Jump settings ----"
i_draw_text(ui.s, ui.dim[W] / 2 - len(text) / 2, win.T + line, win.R - 1,
win.T + line, ui.style[DEF_STYLE], text)