add compose-like progress for running service

This commit is contained in:
Pavel Sviderski
2024-12-06 15:44:23 +10:00
parent f85b5dd01d
commit 73d41c75b3
6 changed files with 428 additions and 87 deletions
+1 -3
View File
@@ -82,11 +82,9 @@ func run(ctx context.Context, uncli *cli.CLI, opts runOptions) error {
Mode: opts.mode,
Name: opts.name,
}
resp, err := client.RunService(ctx, spec)
if err != nil {
if _, err = client.RunService(ctx, spec); err != nil {
return fmt.Errorf("run service: %w", err)
}
fmt.Printf("Service %q started.\n", resp.Name)
return nil
}