Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Gorochovsky committed Jul 20, 2020
1 parent e219c2e commit 7c1e9a7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions command.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ func (cmd *Command) RunWith(args []string, writer io.Writer, resp http.ResponseW
}

if err != nil {
fmt.Printf("Color:%v\n", clr)
clr.Enable()
fmt.Println("suggestion", suggestion)
if cmd.OnRootPrepareError != nil {
err = cmd.OnRootPrepareError(err)
}
Expand Down
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ require (
github.com/labstack/gommon v0.3.0
github.com/mattn/go-colorable v0.1.7
github.com/mattn/go-isatty v0.0.12
github.com/mkideal/cli v0.2.2 // indirect
github.com/mkideal/pkg v0.1.2
github.com/stretchr/testify v1.4.0
)
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHX
github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
github.com/mattn/go-sqlite3 v1.10.0/go.mod h1:FPy6KqzDD04eiIsT53CuJW3U88zkxoIYsOqkbpncsNc=
github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
github.com/mkideal/cli v0.2.2 h1:ppqXv4Ced8Hf1KLEfzwcfeAHXuGRwEnFB7xE/iWWPQo=
github.com/mkideal/cli v0.2.2/go.mod h1:1duqF+rGhMKIF8ezbX/lpkY+Zhn1ECQzzTtcsEh6ZA8=
github.com/mkideal/log v1.0.0/go.mod h1:UHY5EOk5+/f2z2bQ6BGspFw5gl4F1SKjZI7Bqetm724=
github.com/mkideal/pkg v0.1.2 h1:w4CGlOIp9exb1Ypo+XrbIR75ZRruzScNNcX840DSCQ8=
github.com/mkideal/pkg v0.1.2/go.mod h1:4iVkIRF6ThYaNZtD6J/p9gHdy5nXv7EJ+cKuzmmFPAY=
Expand Down

0 comments on commit 7c1e9a7

Please sign in to comment.