Skip to content

Commit

Permalink
Tweak server start text (#554)
Browse files Browse the repository at this point in the history
#### Before
```
$ temporal server start-dev
Temporal server is running at: localhost:7233
Web UI is running at: http://localhost:8233
Metrics available at: http://localhost:55053/metrics
```

#### After
```
$ temporal server start-dev
Temporal server: localhost:7233
Web UI:          http://localhost:8233
Metrics:         http://localhost:54941/metrics
```
  • Loading branch information
dandavison committed May 9, 2024
1 parent f806427 commit f8c0fbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions temporalcli/commands.server.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func (t *TemporalServerStartDevCommand) run(cctx *CommandContext, args []string)
if friendlyIP == "127.0.0.1" {
friendlyIP = "localhost"
}
cctx.Printer.Printlnf("Temporal server is running at: %v:%v", friendlyIP, t.Port)
cctx.Printer.Printlnf("%-16s %v:%v", "Temporal server:", friendlyIP, t.Port)
if !t.Headless {
cctx.Printer.Printlnf("Web UI is running at: http://%v:%v", friendlyIP, opts.UIPort)
cctx.Printer.Printlnf("%-16s http://%v:%v", "Web UI:", friendlyIP, opts.UIPort)
}
cctx.Printer.Printlnf("Metrics available at: http://%v:%v/metrics", friendlyIP, opts.MetricsPort)
cctx.Printer.Printlnf("%-16s http://%v:%v/metrics", "Metrics:", friendlyIP, opts.MetricsPort)
<-cctx.Done()
cctx.Printer.Println("Stopping server...")
return nil
Expand Down

0 comments on commit f8c0fbd

Please sign in to comment.