update verbose info level (#2)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
update verbose info level Co-authored-by: andrey1s <andrey.simfi@list.ru>
This commit is contained in:
4
app.go
4
app.go
@@ -133,11 +133,11 @@ func (a *App) list(ctx context.Context) error {
|
|||||||
|
|
||||||
arr := &input.Array{}
|
arr := &input.Array{}
|
||||||
arr.SetArgument("command_name", value.New(CommandList))
|
arr.SetArgument("command_name", value.New(CommandList))
|
||||||
in := input.Chain(a.in, arr)
|
in := input.Chain(arr, a.in)
|
||||||
|
|
||||||
return Run(ctx, cmd, in, a.out)
|
return Run(ctx, cmd, in, a.out)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *App) printError(ctx context.Context, err error) {
|
func (a *App) printError(ctx context.Context, err error) {
|
||||||
a.out.Println(ctx, "<error>\n\n ", err, "\n</error>")
|
ansi(ctx, a.in, a.out).Println(ctx, "<error>\n\n ", err, "\n</error>")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
verboseTrace = 3
|
verboseTrace = 3
|
||||||
verboseDebug = 2
|
verboseDebug = 2
|
||||||
verboseInfo = 3
|
verboseInfo = 1
|
||||||
)
|
)
|
||||||
|
|
||||||
// Execute the current command with option.
|
// Execute the current command with option.
|
||||||
|
|||||||
Reference in New Issue
Block a user