()
| 82 | } |
| 83 | |
| 84 | func (cmd *APICommand) viewTarget() error { |
| 85 | if cmd.Config.Target() == "" { |
| 86 | cmd.UI.DisplayText("No API endpoint set. Use '{{.Name}}' to set an endpoint", map[string]interface{}{ |
| 87 | "Name": "cf api", |
| 88 | }) |
| 89 | return nil |
| 90 | } |
| 91 | |
| 92 | return cmd.displayTarget() |
| 93 | } |
| 94 | |
| 95 | func (cmd *APICommand) displayTarget() error { |
| 96 | cmd.UI.DisplayKeyValueTable("", [][]string{ |
no test coverage detected