Skip to content

Commit

Permalink
Add new lines before and after program output
Browse files Browse the repository at this point in the history
  • Loading branch information
jcardarelli committed May 1, 2024
1 parent 3a95ebf commit 5d1bc38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"fmt"
"log"

"github.com/jcardarelli/fancy-cli/cmd"
Expand All @@ -13,4 +14,5 @@ func main() {
log.Fatalln(err)
}
cmd.Execute()
fmt.Println()
}

0 comments on commit 5d1bc38

Please sign in to comment.