Skip to content

Commit 4cb06a5

Browse files
fix(cli): remove redundant newlines in fmt.Println for help output
1 parent fae3a80 commit 4cb06a5

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

cmd/root.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,14 @@ func registerUserCmds() {
385385
}
386386

387387
func customHelpFunc(cmd *cobra.Command, args []string) {
388-
fmt.Println("\nStackRoost CLI - manage your Linux servers with ease\n")
389-
fmt.Println("Usage:\n stackroost [command]\n")
390-
fmt.Println("Available Commands:")
388+
fmt.Println()
389+
fmt.Println("StackRoost CLI - manage your Linux servers with ease")
390+
fmt.Println()
391+
fmt.Println("Usage:")
392+
fmt.Println(" stackroost [command]")
393+
fmt.Println()
394+
fmt.Println("Available Commands:")
395+
391396

392397
group := map[string][]*cobra.Command{}
393398

0 commit comments

Comments
 (0)