Documentation ¶
Index ¶
- Constants
- Variables
- func Cleanup()
- func ConsoleOutput(console writesLines, name string) io.Writer
- func ConsoleOutputName(name string) tasks.OutputName
- func Debug(ctx context.Context) io.Writer
- func DebugWithTimestamp(ctx context.Context, format string, args ...any)
- func EnterInputMode(ctx context.Context, params ...string) func()
- func Errors(ctx context.Context) io.Writer
- func GetErrContext(ctx context.Context) *actionErrContext
- func Info(ctx context.Context) io.Writer
- func IsConsoleLike(ctx context.Context) bool
- func MakeConsoleName(logid string, key string, suffix string) string
- func NamedDebug(ctx context.Context, name string) io.Writer
- func Output(ctx context.Context, name string) io.Writer
- func Prepare() error
- func SetStickyContent(ctx context.Context, name string, content string)
- func SetStickyContentOnSink(sink tasks.ActionSink, name string, content string)
- func Stderr(ctx context.Context) io.Writer
- func Stdout(ctx context.Context) io.Writer
- func TypedOutput(ctx context.Context, name string, cat idtypes.CatOutputType) io.Writer
- func UnwrapSink(sink tasks.ActionSink) tasks.ActionSink
- func Warnings(ctx context.Context) io.Writer
- func WithLogs(ctx context.Context, err error) error
- func WriteJSON(w io.Writer, message string, data interface{})
Constants ¶
View Source
const ( CatOutputTool = idtypes.CatOutputTool CatOutputUs = idtypes.CatOutputUs )
Variables ¶
View Source
var ( // Configured globally. DebugToConsole = false DebugToFile string RotatedFile = false )
Functions ¶
func ConsoleOutput ¶
ConsoleOutput returns a writer, whose output will be managed by the specified ConsoleSink.
func ConsoleOutputName ¶
func ConsoleOutputName(name string) tasks.OutputName
func DebugWithTimestamp ¶ added in v0.0.303
func EnterInputMode ¶
func GetErrContext ¶
func IsConsoleLike ¶
func SetStickyContentOnSink ¶
func SetStickyContentOnSink(sink tasks.ActionSink, name string, content string)
func TypedOutput ¶
func UnwrapSink ¶
func UnwrapSink(sink tasks.ActionSink) tasks.ActionSink
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.