Skip to content

Commit c5d5e2c

Browse files
committed
tui/note: unexport PrintNoteWithOptions
Signed-off-by: Alano Terblanche <18033717+Benehiko@users.noreply.github.com>
1 parent 42d3b1d commit c5d5e2c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

internal/tui/note.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,21 @@ type options struct {
2020
messageColor aec.ANSI
2121
}
2222

23-
type NoteOptions func(o *options)
23+
type noteOptions func(o *options)
2424

25-
func WithMessageColor(color aec.ANSI) NoteOptions {
25+
func withMessageColor(color aec.ANSI) noteOptions {
2626
return func(o *options) {
2727
o.messageColor = color
2828
}
2929
}
3030

31-
func WithHeader(header Str) NoteOptions {
31+
func withHeader(header Str) noteOptions {
3232
return func(o *options) {
3333
o.header = header
3434
}
3535
}
3636

37-
func (o Output) PrintNoteWithOptions(format string, args []any, opts ...NoteOptions) {
37+
func (o Output) printNoteWithOptions(format string, args []any, opts ...noteOptions) {
3838
if o.isTerminal {
3939
// TODO: Handle all flags
4040
format = strings.ReplaceAll(format, "--platform", ColorFlag.Apply("--platform"))
@@ -67,7 +67,7 @@ func (o Output) PrintNoteWithOptions(format string, args []any, opts ...NoteOpti
6767
}
6868

6969
func (o Output) PrintNote(format string, args ...any) {
70-
o.PrintNoteWithOptions(format, args, WithHeader(InfoHeader))
70+
o.printNoteWithOptions(format, args, withHeader(InfoHeader))
7171
}
7272

7373
var warningHeader = Str{
@@ -76,5 +76,5 @@ var warningHeader = Str{
7676
}
7777

7878
func (o Output) PrintWarning(format string, args ...any) {
79-
o.PrintNoteWithOptions(format, args, WithHeader(warningHeader), WithMessageColor(ColorWarning))
79+
o.printNoteWithOptions(format, args, withHeader(warningHeader), withMessageColor(ColorWarning))
8080
}

0 commit comments

Comments
 (0)