1 Commits

Author SHA1 Message Date
andrey1s
2657672288 update verbose info level (#2)
All checks were successful
continuous-integration/drone/push Build is passing
update verbose info level

Co-authored-by: andrey1s <andrey.simfi@list.ru>
2021-03-03 20:59:34 +03:00
2 changed files with 3 additions and 3 deletions

4
app.go
View File

@@ -133,11 +133,11 @@ func (a *App) list(ctx context.Context) error {
arr := &input.Array{}
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)
}
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>")
}

View File

@@ -15,7 +15,7 @@ import (
const (
verboseTrace = 3
verboseDebug = 2
verboseInfo = 3
verboseInfo = 1
)
// Execute the current command with option.