(resource string, hint string)
| 97 | } |
| 98 | |
| 99 | func (r *Renderer) EmptyState(resource string, hint string) { |
| 100 | if r.Format == OutputFormatJSON || r.Format == OutputFormatJSONCompact { |
| 101 | r.JSONResult([]interface{}{}) |
| 102 | return |
| 103 | } |
| 104 | r.Warnf("No %s available. %s\n", resource, hint) |
| 105 | } |
| 106 | |
| 107 | func (r *Renderer) JSONResult(data interface{}) { |
| 108 | b, err := json.MarshalIndent(data, "", " ") |
no test coverage detected