Mislav Marohnić
e87775845d
Also print cmd usage string on "unknown command"
2019-10-31 22:44:43 +01:00
Mislav Marohnić
a6e61a3a8d
Silence Cobra usage on errors
...
When an error occurs anywhere in a command, Cobra used to print the
error itself and command usage help.
We already print error in `main()`, and we don't want to use command
usage string on anything other than flag-parsing errors.
This also fixes the double output of each error.
2019-10-31 13:47:10 +01:00
Mislav Marohnić
f786802e9e
Customizable API client
2019-10-29 21:07:03 +01:00
Mislav Marohnić
8370602f49
WIP eliminate package-level state in commands, context
2019-10-25 21:49:08 +02:00
Mislav Marohnić
641de86427
Eliminate package-level state in git remote parsing
2019-10-25 21:48:25 +02:00
Mislav Marohnić
c82e38353f
Fix global --repo, --current-branch functionality
...
Turns out I've tried to use the flags' value too early: they are not yet
parsed out at package `init()` time.
2019-10-18 19:24:16 +02:00
Mislav Marohnić
183db99535
Ensure remote URL parsing tests don't read user SSH config files
2019-10-17 15:58:26 +02:00
Mislav Marohnić
344906bf03
Test SSH config parser
2019-10-17 15:50:17 +02:00
Mislav Marohnić
8016d80884
Create overridable Context interface
2019-10-17 02:25:59 +02:00
nate smith
8dd03144ff
initial commit
2019-10-03 22:20:31 -05:00