Documentation
¶
Index ¶
- Constants
- Variables
- func ConsoleOutput(console writesLines, name string) io.Writer
- func ConsoleOutputName(name string) tasks.OutputName
- func Debug(ctx context.Context) io.Writer
- func EnterInputMode(ctx context.Context, params ...string) func()
- func Errors(ctx context.Context) io.Writer
- func GetErrContext(ctx context.Context) *actionErrContext
- 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 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 common.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 = common.CatOutputTool
CatOutputUs = common.CatOutputUs
)
Variables ¶
View Source
var (
// Configured globally.
DebugToConsole = false
)
Functions ¶
func ConsoleOutput ¶
func ConsoleOutput(console writesLines, name string) io.Writer
ConsoleOutput returns a writer, whose output will be managed by the specified ConsoleSink.
func ConsoleOutputName ¶
func ConsoleOutputName(name string) tasks.OutputName
func EnterInputMode ¶
func EnterInputMode(ctx context.Context, params ...string) func()
func GetErrContext ¶
func GetErrContext(ctx context.Context) *actionErrContext
func IsConsoleLike ¶
func IsConsoleLike(ctx context.Context) bool
func MakeConsoleName ¶
func MakeConsoleName(logid string, key string, suffix string) string
func NamedDebug ¶ added in v0.0.91
func NamedDebug(ctx context.Context, name string) io.Writer
func SetStickyContent ¶
func SetStickyContent(ctx context.Context, name string, content string)
func SetStickyContentOnSink ¶
func SetStickyContentOnSink(sink tasks.ActionSink, name string, content string)
func TypedOutput ¶
func TypedOutput(ctx context.Context, name string, cat common.CatOutputType) io.Writer
func UnwrapSink ¶
func UnwrapSink(sink tasks.ActionSink) tasks.ActionSink
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.