Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOutputFlags ¶ added in v1.0.0
func AddOutputFlags(cmd *cobra.Command, opts *OutputOptions)
AddOutputFlags registers --json / -j, --table / -t, --csv / -c on the given command. --non-interactive / -n is registered as a hidden alias for --table for backwards compatibility.
func IsFeatureNotEnabledError ¶
IsFeatureNotEnabledError checks if the error indicates that a feature is not enabled for the user. Uses semantic matching on key phrases for robustness against minor wording changes.
func ParseIDFile ¶ added in v1.0.0
ParseIDFile reads a file containing one ID per line. It trims whitespace, skips blank lines, and returns an error if the file is empty or contains no valid entries.
func ResolveFormat ¶ added in v1.0.0
func ResolveFormat(opts OutputOptions) string
ResolveFormat returns the resolved format string based on the flags set. Priority: json > csv > table. Returns "" to indicate auto (TUI if TTY, else table).
Types ¶
type OutputOptions ¶ added in v1.0.0
OutputOptions holds the output format flags for list commands.