Skip to content

Commit

Permalink
Bump up gocli version
Browse files Browse the repository at this point in the history
  • Loading branch information
spiegel-im-spiegel committed Mar 2, 2019
1 parent 6a4538a commit 8a32a51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions cli/mklink/facade/interactive.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import (
"github.com/spiegel-im-spiegel/gocli/rwi"
"github.com/spiegel-im-spiegel/mklink/cli/mklink/makelink"
"github.com/spiegel-im-spiegel/mklink/errs"
errors "golang.org/x/xerrors"
)

func interactiveMode(ui *rwi.RWI, cxt *makelink.Context) error {
Expand Down Expand Up @@ -37,7 +36,7 @@ func interactiveMode(ui *rwi.RWI, cxt *makelink.Context) error {
prompt.WithHeaderMessage("Input 'q' or 'quit' to stop"),
)
if !p.IsTerminal() {
return errors.New("not terminal (or pipe?)")
return errs.Wrap(prompt.ErrNotTerminal, "error in interactive mode")
}
return errs.Wrap(p.Run(), "error in interactive mode")
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ require (
github.com/mattn/go-encoding v0.0.2
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3 // indirect
github.com/spiegel-im-spiegel/gocli v0.9.2
github.com/spiegel-im-spiegel/gocli v0.9.3
golang.org/x/net v0.0.0-20190301231341-16b79f2e4e95
golang.org/x/text v0.3.0 // indirect
golang.org/x/xerrors v0.0.0-20190212162355-a5947ffaace3
Expand Down

0 comments on commit 8a32a51

Please sign in to comment.