We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a12f553 commit 137c977Copy full SHA for 137c977
cli/cliui/output.go
@@ -83,6 +83,8 @@ func (f *OutputFormatter) Format(ctx context.Context, data any) (string, error)
83
return "", xerrors.Errorf("unknown output format %q", f.formatID)
84
}
85
86
+// FormatID will return the ID of the format selected by `--output`.
87
+// If no flag is present, it returns the 'default' formatter.
88
func (f *OutputFormatter) FormatID() string {
89
return f.formatID
90
0 commit comments