BuildSSHArgs constructs the argument list for the ssh binary to connect to host as user, optionally via jumphost. Exported for use by CLI subcommands that need to exec ssh directly (without the TUI's "press Enter" prompt).
(user, host string, jumphost config.SSHJumpHost)
| 348 | // host as user, optionally via jumphost. Exported for use by CLI subcommands |
| 349 | // that need to exec ssh directly (without the TUI's "press Enter" prompt). |
| 350 | func BuildSSHArgs(user, host string, jumphost config.SSHJumpHost) []string { |
| 351 | return buildSSHArgsBase(user, host, jumphost) |
| 352 | } |
| 353 | |
| 354 | func buildSSHArgsBase(user, host string, jumphost config.SSHJumpHost) []string { |
| 355 | var args []string |
no test coverage detected