From efad558324bdac262d37100b7f517b9149234d4e Mon Sep 17 00:00:00 2001 From: Jiri Date: Thu, 24 Oct 2024 15:56:30 +0200 Subject: [PATCH 1/2] cosmetic: new line added to util commands --- cmd/fetchd/cmd/util.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/fetchd/cmd/util.go b/cmd/fetchd/cmd/util.go index 8eab40e4..9efc2077 100644 --- a/cmd/fetchd/cmd/util.go +++ b/cmd/fetchd/cmd/util.go @@ -114,7 +114,7 @@ func utilJsonCommand() *cobra.Command { } ctx := client.GetClientContextFromCmd(cmd) - return ctx.PrintString(hashHex) + return ctx.PrintString(fmt.Sprintf("%s\n", hashHex)) }, } @@ -133,7 +133,7 @@ func utilJsonCommand() *cobra.Command { } ctx := client.GetClientContextFromCmd(cmd) - return ctx.PrintString(jsonNormalised) + return ctx.PrintString(fmt.Sprintf("%s\n",jsonNormalised)) }, } @@ -253,7 +253,7 @@ func utilAddressCommand() *cobra.Command { } ctx := client.GetClientContextFromCmd(cmd) - return ctx.PrintString(newAddress) + return ctx.PrintString(fmt.Sprintf("%s\n"newAddress)) }, } From 8c5b611091ab7250b8ef23672924cc396ef9f16e Mon Sep 17 00:00:00 2001 From: Jiri Date: Thu, 24 Oct 2024 16:05:31 +0200 Subject: [PATCH 2/2] fix: typo --- cmd/fetchd/cmd/util.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/fetchd/cmd/util.go b/cmd/fetchd/cmd/util.go index 9efc2077..7f26f4a2 100644 --- a/cmd/fetchd/cmd/util.go +++ b/cmd/fetchd/cmd/util.go @@ -133,7 +133,7 @@ func utilJsonCommand() *cobra.Command { } ctx := client.GetClientContextFromCmd(cmd) - return ctx.PrintString(fmt.Sprintf("%s\n",jsonNormalised)) + return ctx.PrintString(fmt.Sprintf("%s\n", jsonNormalised)) }, } @@ -253,7 +253,7 @@ func utilAddressCommand() *cobra.Command { } ctx := client.GetClientContextFromCmd(cmd) - return ctx.PrintString(fmt.Sprintf("%s\n"newAddress)) + return ctx.PrintString(fmt.Sprintf("%s\n", newAddress)) }, }