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() { func init() {
execCmd.AddCommand(hostExecCommand) execCmd.AddCommand(hostExecCommand, hostsExecCommand)
} }

View File

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

View File

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

View File

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

View File

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