mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
add compose-like progress for running service
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user