Skip to content

Commit 137c977

Browse files
docs: add documentation for public method
1 parent a12f553 commit 137c977

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cli/cliui/output.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ func (f *OutputFormatter) Format(ctx context.Context, data any) (string, error)
8383
return "", xerrors.Errorf("unknown output format %q", f.formatID)
8484
}
8585

86+
// FormatID will return the ID of the format selected by `--output`.
87+
// If no flag is present, it returns the 'default' formatter.
8688
func (f *OutputFormatter) FormatID() string {
8789
return f.formatID
8890
}

0 commit comments

Comments
 (0)