setup: Add the ssh url arg to the setup utility

This commit is contained in:
James Shubin
2025-05-26 02:26:32 -04:00
parent 0fd6970c0a
commit b85751e07e
2 changed files with 6 additions and 0 deletions

View File

@@ -110,6 +110,11 @@ func (obj *Svc) Run(ctx context.Context) error {
"run", // run command
}
if s := obj.SetupSvcArgs.SSHURL; s != "" {
// TODO: validate ssh url? Should be user@server:port
argv = append(argv, fmt.Sprintf("--ssh-url=%s", s))
}
if seeds := obj.SetupSvcArgs.Seeds; len(seeds) > 0 {
// TODO: validate each seed?
s := fmt.Sprintf("--seeds=%s", strings.Join(seeds, ","))