Files
ubicloud/cli-commands/vm/post/ssh.rb
Jeremy Evans cbf2d95cbb Revert the backout of the CLI support
This reverts commit b741fe9005.

This was backed out as problems started occuring shortly after
a large CLI pull request was merged.  However, log analysis
shows that the CLI was unrelated to the problems.
2025-02-11 16:09:46 -08:00

19 lines
350 B
Ruby

# frozen_string_literal: true
UbiRodish.on("vm").run_on("ssh") do
skip_option_parsing
args(0...)
run do |argv, opts|
handle_ssh(opts) do |user:, address:|
if (i = argv.index("--"))
options = argv[0...i]
argv = argv[(i + 1)...]
end
["ssh", *options, "--", "#{user}@#{address}", *argv]
end
end
end