Skip to content

Commit

Permalink
feat: update complete message
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan committed May 26, 2022
1 parent c523982 commit 27c9290
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,13 @@ module github.com/kevwan/depu

go 1.18

require github.com/olekukonko/tablewriter v0.0.5
require (
github.com/briandowns/spinner v1.18.1
github.com/fatih/color v1.7.0
github.com/olekukonko/tablewriter v0.0.5
)

require (
github.com/briandowns/spinner v1.18.1 // indirect
github.com/fatih/color v1.7.0 // indirect
github.com/mattn/go-colorable v0.1.2 // indirect
github.com/mattn/go-isatty v0.0.8 // indirect
github.com/mattn/go-runewidth v0.0.13 // indirect
Expand Down
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ func main() {
}

if len(tableRows) == 0 {
fmt.Println("\U0001f4ab\033[1;32m Complete!\033[0m All of your dependencies are up to date.")
awesome := color.New(color.FgHiGreen, color.Bold).Sprint("Awesome!")
fmt.Printf("\U0001f4ab %s All of your dependencies are up-to-date.\n", awesome)
} else {
table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Package", "Current", "Latest", "GoVersion"})
Expand Down

0 comments on commit 27c9290

Please sign in to comment.