mpppk / hlb

CLI that provides unified & interactive interface to multiple git repository hosting services.
MIT License
38 stars 1 forks source link

Error occurred in `hlb create` if service choosing is canceled #25

Open mpppk opened 7 years ago

mpppk commented 7 years ago
~/s/g/m/for_integration_test ❯❯❯ hlb create
Using config file: /Users/yuki/.config/hlb/.hlb.yaml
? Choose target service:
❯ github.com
  gitlab.com
panic: Error occurred while selecting the git service in create command: Error occurred while the user was selecting the git service in create command: Unexpected Escape Sequence: ['\x1b' '\x1b']

goroutine 1 [running]:
github.com/mpppk/hlb/etc.PanicIfErrorExist(0x1a1c480, 0xc42011fa60)
    /Users/yuki/src/github.com/mpppk/hlb/etc/utils.go:5 +0x4a
github.com/mpppk/hlb/cmd.glob..func11(0x1a65700, 0x1a8a088, 0x0, 0x0)
    /Users/yuki/src/github.com/mpppk/hlb/cmd/create.go:82 +0x4dc
github.com/spf13/cobra.(*Command).execute(0x1a65700, 0x1a8a088, 0x0, 0x0, 0x1a65700, 0x1a8a088)
    /Users/yuki/src/github.com/spf13/cobra/command.go:651 +0x23a
github.com/spf13/cobra.(*Command).ExecuteC(0x1a66c40, 0xc420066058, 0x0, 0x1)
    /Users/yuki/src/github.com/spf13/cobra/command.go:726 +0x339
github.com/spf13/cobra.(*Command).Execute(0x1a66c40, 0x1a66c40, 0xc420107f50)
    /Users/yuki/src/github.com/spf13/cobra/command.go:685 +0x2b
github.com/mpppk/hlb/cmd.Execute()
    /Users/yuki/src/github.com/mpppk/hlb/cmd/root.go:59 +0x31
main.main()
    /Users/yuki/src/github.com/mpppk/hlb/main.go:6 +0x20