Skip to content

Commit e72387a

Browse files
committed
feat: show manual start hint on install refusal and dashboard link
1 parent a547228 commit e72387a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/greyproxy/install.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ func handleInstall(args []string) {
7171
if !force {
7272
fmt.Printf("\nProceed? [Y/n] ")
7373
if !askConfirm() {
74+
fmt.Println("You can start the server manually with: greyproxy serve")
75+
fmt.Println("Dashboard: http://localhost:43080")
7476
return
7577
}
7678
}
7779

7880
freshInstall(binSrc, binDst)
81+
fmt.Println("\nDashboard: http://localhost:43080")
7982
}
8083

8184
func handleReinstall(binSrc, binDst string, force bool) {
@@ -90,6 +93,8 @@ func handleReinstall(binSrc, binDst string, force bool) {
9093
if !force {
9194
fmt.Printf("\nProceed? [Y/n] ")
9295
if !askConfirm() {
96+
fmt.Println("You can start the server manually with: greyproxy serve")
97+
fmt.Println("Dashboard: http://localhost:43080")
9398
return
9499
}
95100
}
@@ -110,6 +115,7 @@ func handleReinstall(binSrc, binDst string, force bool) {
110115

111116
// 3-5. Fresh install (copy binary, register, start)
112117
freshInstall(binSrc, binDst)
118+
fmt.Println("\nDashboard: http://localhost:43080")
113119
}
114120

115121
func freshInstall(binSrc, binDst string) {

0 commit comments

Comments
 (0)