From f0bcb312ca3a31e784584ff4f3f285027604790b Mon Sep 17 00:00:00 2001 From: Nitishkumar Singh Date: Wed, 22 Nov 2023 15:37:33 +0800 Subject: [PATCH] fix request usage Signed-off-by: Nitishkumar Singh --- commands/describe.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/describe.go b/commands/describe.go index 8f667357..e9d57bd1 100644 --- a/commands/describe.go +++ b/commands/describe.go @@ -273,13 +273,13 @@ func printResources(w io.Writer, name string, data *types.FunctionResources, ver return } - fmt.Fprintf(w, name+":") - + header := name + ":" if data == nil { - fmt.Fprintln(w, "\t ") + fmt.Fprintln(w, header+"\t ") return } + fmt.Fprintln(w, header) fmt.Fprintln(w, "\t CPU: "+data.CPU) fmt.Fprintln(w, "\t Memory: "+data.Memory)