Cmd Type script now correctly appends arguments
Some checks failed
ci/woodpecker/push/go-lint Pipeline failed
ci/woodpecker/push/publish-docs Pipeline was successful

This commit is contained in:
2025-11-15 17:37:17 -06:00
parent e57939f858
commit 0d6a13c1cf
153 changed files with 8 additions and 1 deletions

0
pkg/backy/allowedexternaldirectives_enumer.go Normal file → Executable file
View File

0
pkg/backy/backy.go Normal file → Executable file
View File

0
pkg/backy/backy_test.go Normal file → Executable file
View File

0
pkg/backy/commandtype_enumer.go Normal file → Executable file
View File

0
pkg/backy/config.go Normal file → Executable file
View File

0
pkg/backy/cron.go Normal file → Executable file
View File

0
pkg/backy/lineinfile.go Normal file → Executable file
View File

0
pkg/backy/list.go Normal file → Executable file
View File

0
pkg/backy/metrics.go Normal file → Executable file
View File

0
pkg/backy/metrics_test.go Normal file → Executable file
View File

0
pkg/backy/notification.go Normal file → Executable file
View File

0
pkg/backy/packageoperation_enumer.go Normal file → Executable file
View File

0
pkg/backy/planForHosts.md Normal file → Executable file
View File

6
pkg/backy/ssh.go Normal file → Executable file
View File

@@ -678,7 +678,11 @@ func (command *Command) prepareScriptBuffer() (*bytes.Buffer, error) {
buffer.WriteByte('\n')
}
buffer.WriteString(command.Cmd + "\n")
buffer.WriteString(command.Cmd)
for _, arg := range command.Args {
buffer.WriteString(" " + arg)
}
buffer.WriteByte('\n')
return &buffer, nil
}

0
pkg/backy/templates/error.txt Normal file → Executable file
View File

0
pkg/backy/templates/success.txt Normal file → Executable file
View File

0
pkg/backy/tools.go Normal file → Executable file
View File

0
pkg/backy/types.go Normal file → Executable file
View File

0
pkg/backy/utils.go Normal file → Executable file
View File

0
pkg/logging/logging.go Normal file → Executable file
View File

0
pkg/pkgman/apt/apt.go Normal file → Executable file
View File

0
pkg/pkgman/common/options.go Normal file → Executable file
View File

0
pkg/pkgman/dnf/dnf.go Normal file → Executable file
View File

0
pkg/pkgman/pkgman.go Normal file → Executable file
View File

0
pkg/pkgman/yum/yum.go Normal file → Executable file
View File

0
pkg/remotefetcher/cache.go Normal file → Executable file
View File

0
pkg/remotefetcher/configfetcher.go Normal file → Executable file
View File

0
pkg/remotefetcher/http.go Normal file → Executable file
View File

0
pkg/remotefetcher/local.go Normal file → Executable file
View File

0
pkg/remotefetcher/options.go Normal file → Executable file
View File

0
pkg/remotefetcher/s3.go Normal file → Executable file
View File

0
pkg/usermanager/common/options.go Normal file → Executable file
View File

0
pkg/usermanager/linux/linux.go Normal file → Executable file
View File

0
pkg/usermanager/userman.go Normal file → Executable file
View File