Skip to content

Commit

Permalink
feat: print urls in blue
Browse files Browse the repository at this point in the history
  • Loading branch information
wowu committed Jul 20, 2022
1 parent 5b3b6e1 commit 40ab5fb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions commands/open.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ func Open(repoPath string, print bool) {
homeUrl = strings.TrimSuffix(homeUrl, ".git")

if print {
fmt.Println(homeUrl)
color.Blue(homeUrl)
} else {
fmt.Println(homeUrl)
color.Blue(homeUrl)
openBrowser(homeUrl)
}

Expand Down Expand Up @@ -104,9 +104,9 @@ func openGitLab(branch string, projectPath string, print bool) {
url := currentMergeRequest.WebUrl

if print {
fmt.Println(url)
color.Blue(url)
} else {
fmt.Println("Opening " + url)
fmt.Println("Opening " + color.BlueString(url))
openBrowser(url)
}
}
Expand Down Expand Up @@ -137,9 +137,9 @@ func openGitHub(branch string, projectPath string, print bool) {
url := currentPullRequest.HtmlURL

if print {
fmt.Println(url)
color.Blue(url)
} else {
fmt.Println("Opening " + url)
fmt.Println("Opening " + color.BlueString(url))
openBrowser(url)
}
}
Expand Down

0 comments on commit 40ab5fb

Please sign in to comment.