CLI: Exec subcommand host

This commit is contained in:
Andrew Woodlee 2025-07-15 20:23:58 -05:00
parent 11d5121954
commit dd9da9452b
5 changed files with 11 additions and 3 deletions

View File

@ -21,7 +21,7 @@ var (
)
func init() {
execCmd.AddCommand(hostExecCommand)
execCmd.AddCommand(hostExecCommand, hostsExecCommand)
}

View File

@ -22,7 +22,6 @@ commands:
outputToLog: true
Args:
- "-v"
host: email-svr
cmdLists:
TestHooks:

View File

@ -1,3 +1,4 @@
cd ~/Projects/backy/tests/docker
docker container rm -f ssh_server_container
docker build -t ssh_server_image .
docker run -d -p 2222:22 --name ssh_server_container ssh_server_image

View File

@ -2,5 +2,5 @@ hosts:
docker:
port: 2222
Hostname: localhost
user: backy
user: root
IdentityFile: ./docker/backytest

View File

@ -38,6 +38,14 @@ commands:
packageManager: apt
packageOperation: checkVersion
installJq:
type: package
shell: bash
packages:
- name: "jq"
packageManager: apt
packageOperation: install
checkDockerVersionWithInvalidRegex:
type: package
shell: zsh