diff options
Diffstat (limited to 'cmd/ship/list.go')
| -rw-r--r-- | cmd/ship/list.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/ship/list.go b/cmd/ship/list.go index a5b8df3..404ca68 100644 --- a/cmd/ship/list.go +++ b/cmd/ship/list.go | |||
| @@ -43,7 +43,11 @@ func runList(cmd *cobra.Command, args []string) error { | |||
| 43 | if app.Type == "app" { | 43 | if app.Type == "app" { |
| 44 | port = fmt.Sprintf(":%d", app.Port) | 44 | port = fmt.Sprintf(":%d", app.Port) |
| 45 | } | 45 | } |
| 46 | fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", name, app.Type, app.Domain, port) | 46 | domain := app.Domain |
| 47 | if domain == "" { | ||
| 48 | domain = "-" | ||
| 49 | } | ||
| 50 | fmt.Fprintf(w, "%s\t%s\t%s\t%s\n", name, app.Type, domain, port) | ||
| 47 | } | 51 | } |
| 48 | w.Flush() | 52 | w.Flush() |
| 49 | return nil | 53 | return nil |
