add compose-like progress for running service

This commit is contained in:
Pavel Sviderski committed 2024-12-06 15:44:23 +10:00
1 parent f85b5dd01d
commit 73d41c75b3
6 files changed
+428 -87

No files matched your search

+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
}