Browse Source

update verbose info level (#2)

update verbose info level

Co-authored-by: andrey1s <andrey.simfi@list.ru>
pull/2/head v0.0.2
andrey1s 4 years ago
parent
commit
2657672288
  1. 4
      app.go
  2. 2
      console.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>")
} }

2
console.go

@ -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.

Loading…
Cancel
Save