Skip to content

Commit b16f37e

Browse files
committed
[coconut] Show transition field for env if not empty
1 parent cca0a37 commit b16f37e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

coconut/control/control.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,9 @@ func ShowEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.Com
511511
_, _ = fmt.Fprintf(o, "description: %s\n", env.GetDescription())
512512
_, _ = fmt.Fprintf(o, "created: %s\n", formatTimestamp(env.GetCreatedWhen()))
513513
_, _ = fmt.Fprintf(o, "state: %s\n", colorState(env.GetState()))
514+
if currentTransition := env.GetCurrentTransition(); len(currentTransition) != 0 {
515+
_, _ = fmt.Fprintf(o, "transition: %s\n", currentTransition)
516+
}
514517
_, _ = fmt.Fprintf(o, "public: %t\n", response.Public)
515518
_, _ = fmt.Fprintf(o, "run number: %s\n", rnString)
516519
_, _ = fmt.Fprintf(o, "number of FLPs: %s\n", formatNumber(env.GetNumberOfFlps()))

0 commit comments

Comments
 (0)