morph icon indicating copy to clipboard operation
morph copied to clipboard

morph exec should have a --script option

Open johanot opened this issue 6 years ago • 0 comments

It should be possible to supply a full shell script to morph to be executed on a/multiple remote host(s).

Something along the lines of morph exec --script foobar.sh ./hostgroups/k8s.nix

The supplied script would be uploaded to the remote hosts as tempfiles and executed like so: bash /tmp/xXya81.foobar.sh

If the --script flag is provided, the command argument should either be:

  • omitted

  • its value be prepended to the executing shell command at the remote

  • its value be replacing the executing shell command at the remote

johanot avatar Feb 18 '19 10:02 johanot