From 5d1bc3810c9e49a514c247ed40d6db4df2ec418f Mon Sep 17 00:00:00 2001 From: John Cardarelli Date: Wed, 1 May 2024 12:42:20 -0700 Subject: [PATCH] Add new lines before and after program output --- cmd/root.go | 1 + main.go | 2 ++ 2 files changed, 3 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 4c60479..c57dfbc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -22,6 +22,7 @@ var rootCmd = &cobra.Command{ // This is called by main.main(). It only needs to happen once to the rootCmd. func Execute() { // Print startup banner with go-figure + fmt.Println() banner := figure.NewFigure("fancy", "ticks", true) banner.Print() fmt.Println() diff --git a/main.go b/main.go index 320f63e..c9d5edf 100644 --- a/main.go +++ b/main.go @@ -1,6 +1,7 @@ package main import ( + "fmt" "log" "github.com/jcardarelli/fancy-cli/cmd" @@ -13,4 +14,5 @@ func main() { log.Fatalln(err) } cmd.Execute() + fmt.Println() }