structuredOutput reports whether an output format was requested via --output.
()
| 232 | |
| 233 | // structuredOutput reports whether an output format was requested via --output. |
| 234 | func (opts *OpenOptions) structuredOutput() bool { |
| 235 | return opts.PrintFlags != nil && |
| 236 | opts.PrintFlags.OutputFlagSpecified != nil && |
| 237 | opts.PrintFlags.OutputFlagSpecified() |
| 238 | } |
| 239 | |
| 240 | // printTargets renders page metadata with the configured printer. When listing, |
| 241 | // every shortcut is printed; otherwise only the requested shortcut is printed. |