CLI: added exec hosts subcommand list

This commit is contained in:
Andrew Woodlee 2025-07-23 22:05:44 -05:00
parent 14c81a00a7
commit 7fe07f86a9

10
pkg/backy/planForHosts.md Normal file
View File

@ -0,0 +1,10 @@
# Running commands on hosts
I want all commands in a list to be able to be run on all hosts. The underlying solution will be using a function to run the list on a host, and therefore change the host on the commands. This can be done in several ways:
1. The commands can have a `Hosts` field that will be a []string. This array can be populated several ways:
- From the config file
- using CLI options and commands
The commands can be run in succession on all hosts using functions
2. The existing `Host` field can be modified in a function. The commands need to be added to a `[]*Command` slice so that all hosts can be run.