(output string)
| 227 | } |
| 228 | |
| 229 | func newPrintFlags(output string) *cmdutil.PrintFlags { |
| 230 | pf := cmdutil.NewPrintFlags() |
| 231 | *pf.OutputFormat = output |
| 232 | pf.OutputFlagSpecified = func() bool { return output != "" } |
| 233 | return pf |
| 234 | } |
| 235 | |
| 236 | // newOpts builds CreateOptions wired to the stub server, defaulting to JSON output. |
| 237 | func newOpts( |
no test coverage detected