Overriding Default Printers for Inclusion of Line Numbers #406
-
I'm wanting to customize github action output on a new github action. I can't figure out the proper way to do this as I don't want to build new printers, just override the options for the existing printers. All the current examples show mostly override Header, Section and others, which make sense, but don't seem to apply to normal Any tips? func (cfg *config) configureLogging() {
pterm.Info.Println("configureLogging()")
pterm.Error.ShowLineNumber = true
pterm.Info.ShowLineNumber = false
pterm.Warning.ShowLineNumber = true
pterm.Success.ShowLineNumber = true
pterm.Error.Prefix = pterm.Prefix{
Text: "::error ",
Style: &pterm.Style{},
}
pterm.Debug.Prefix = pterm.Prefix{
Text: "::debug ",
Style: &pterm.Style{},
}
pterm.Warning.Prefix = pterm.Prefix{
Text: "::warning ",
Style: &pterm.Style{},
}
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Never mind :-) |
Beta Was this translation helpful? Give feedback.
Never mind :-)
This seems to have done the trick actually.
The main issue was my integration test was qualified to the older image and I wasn't seeing the changes after I made those. Thank you!