Documentation ¶
Index ¶
- func ErrSection(err error) fmt.Stringer
- func IntoContext(ctx context.Context, logger Logger) context.Context
- func Log(ctx context.Context, operation Operation, status Status, color *color.Color, ...)
- func Section(name string, args ...any) fmt.Stringer
- type Logger
- type Operation
- type Status
- type TLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrSection ¶ added in v0.0.6
func IntoContext ¶ added in v0.0.4
Types ¶
type Logger ¶
func FromContext ¶ added in v0.0.4
type Operation ¶ added in v0.0.6
const ( Apply Operation = "APPLY" Assert Operation = "ASSERT" Catch Operation = "CATCH" Cleanup Operation = "CLEANUP" Command Operation = "CMD" Create Operation = "CREATE" Delete Operation = "DELETE" Error Operation = "ERROR" Finally Operation = "FINALLY" Get Operation = "GET" Internal Operation = "INTERNAL" Patch Operation = "PATCH" Script Operation = "SCRIPT" Sleep Operation = "SLEEP" Stderr Operation = "STDERR" Stdout Operation = "STDOUT" Try Operation = "TRY" Update Operation = "UPDATE" )
Click to show internal directories.
Click to hide internal directories.