()
| 150 | } |
| 151 | |
| 152 | func (c *cli) configureRenderer() { |
| 153 | c.renderer.Tenant = c.tenant |
| 154 | |
| 155 | if c.json { |
| 156 | c.renderer.Format = display.OutputFormatJSON |
| 157 | } |
| 158 | |
| 159 | if c.jsonCompact { |
| 160 | c.renderer.Format = display.OutputFormatJSONCompact |
| 161 | } |
| 162 | |
| 163 | if c.csv { |
| 164 | c.renderer.Format = display.OutputFormatCSV |
| 165 | } |
| 166 | } |
| 167 | |
| 168 | func canPrompt(cmd *cobra.Command) bool { |
| 169 | noInput, err := cmd.Root().Flags().GetBool("no-input") |