From a80c03cacc299f99d8909bce1493a973f3ecf16c Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Fri, 1 Sep 2023 11:49:02 +0200 Subject: [PATCH] [coconut] Display number of active/inactive/total tasks in env --- coconut/control/control.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/coconut/control/control.go b/coconut/control/control.go index b6b73527..5dc0768c 100644 --- a/coconut/control/control.go +++ b/coconut/control/control.go @@ -434,6 +434,9 @@ func CreateEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.C _, _ = fmt.Fprintf(o, "description: %s\n", env.GetDescription()) _, _ = fmt.Fprintf(o, "state: %s\n", colorState(env.GetState())) _, _ = fmt.Fprintf(o, "public: %v\n", response.Public) + _, _ = fmt.Fprintf(o, "tasks active: %v\n", env.GetNumberOfActiveTasks()) + _, _ = fmt.Fprintf(o, "tasks inactive: %v\n", env.GetNumberOfInactiveTasks()) + _, _ = fmt.Fprintf(o, "tasks total: %v\n", env.GetNumberOfTasks()) var ( defaultsStr = stringMapToString(env.Defaults, "\t")