Mike Lundy
c4dfa597b8
add /v2 to the module name to resolve the module path problem
2020-04-16 16:30:07 -07:00
Mislav Marohnić
2b471bd415
[version] Support `--build-options`
...
Ensure that all flags are forwarded to `git version`
Fixes #2440
2020-01-21 13:31:17 +01:00
Mislav Marohnić
7548421208
Show hub version even if `git version` fails
...
Fixes https://github.com/github/hub/issues/1423
2017-06-26 20:22:11 +02:00
Mislav Marohnić
490887a02a
Mark the `version` command as being a git extension
...
This prevents it from showing up under custom commands in `hub help -a`
2016-11-01 11:50:30 +01:00
Mislav Marohnić
0c4689c673
Fix printing content on Windows after successful run
...
The old `args.After("echo", ...)` approach won't cut it on Windows since
there is no `echo` executable. Thus, nothing was printed on Windows.
Instead, expand Args type with extra functionality that allows Go
callbacks after all commands in the chain have been run.
Also, the new `args.NoForward()` is now preferred to `os.Exit()` since
it's more descriptive and allows `defer` in the calling function.
2016-09-10 23:49:58 +02:00
Mislav Marohnić
0a45aa8ddc
Reformat inline command help and expand usage options
2016-01-25 02:30:46 +11:00
Jingwen Owen Ou
a4698bcf71
Add hub version to crash report
...
This adds hub version to crash report. It includes refactoring of hub version to the `version` package for reusability in `commands` package and `github` package.
2015-09-27 10:58:29 -07:00
Mislav Marohnić
c83a4488fb
Make `--help`/`--version` explicit aliases for `help`/`version`
...
Before, the argument parser would translate `--help` and `--version` to
their equivalents without the dashes. Now it's not the parser's
responsibility to do that anymore. Instead, wire them up as subcommand
aliases in the runner.
2015-07-08 11:33:58 -07:00
Jingwen Owen Ou
fa47e12505
Bump 2.2.1
2015-04-12 13:56:59 -07:00
Jingwen Owen Ou
177640dbd4
Extract logic of printing out to console
...
Introduce a `console` package which encapsulates logic of printing out
to console. This provides flexibility of discarding output in tests.
It also allows us to unify format of printing to console (if we want to).
This fixes #801 .
2015-02-20 13:19:24 -08:00
Jingwen Owen Ou
247ddb035a
Bump `hub` to 2.2.0
2015-02-14 09:03:44 -08:00
Jingwen Owen Ou
0c4439d1ab
Bump to 2.2.0-rc1
2014-12-25 17:22:57 -08:00
Jingwen Owen Ou
6815930a6d
Include git tag SHA in build
...
Use the `-ldflags` to change version at the linker. See http://golang.org/cmd/ld .
Issue: https://github.com/github/hub/issues/672#issuecomment-62040388
2014-11-11 22:51:03 -08:00
Jingwen Owen Ou
60ba783af1
Bump version to 2.2.0-preview1 for release
2014-10-19 17:33:29 -07:00
Jingwen Owen Ou
89ef033c75
Print hub version instead of gh
2014-10-19 12:36:02 -07:00
Jingwen Owen Ou
bf1691e515
Bump version to v2.0.0
...
Conflicts:
README.md
2014-04-19 11:14:38 -07:00
Jingwen Owen Ou
498789a999
Change namespace to github/hub
2014-02-10 08:29:03 -08:00
David Calavera
371ae8b432
Add global commands to the runner.
...
- Use a hash to lookup for commands.
- Add more tests for the command and runner execution.
2013-12-29 14:18:14 -08:00
Jingwen Owen Ou
46ba0fb52c
Bump version to v1.0.0
2013-12-22 06:47:44 -08:00
Jingwen Owen Ou
64c5ec3d19
Fallback to 0.26.0
2013-12-19 15:05:34 -08:00
Jingwen Owen Ou
8f797c11fd
Only prompt for update if there's a new release
...
Reference: https://github.com/jingweno/gh/pull/128#issuecomment-30971747
2013-12-19 14:44:58 -08:00
Jingwen Owen Ou
edda656503
Bump version to v0.26.0
2013-12-17 10:24:39 -08:00
Jingwen Owen Ou
3736c1dc2e
Bump version to v0.25.1
2013-11-26 07:19:47 -08:00
Jingwen Owen Ou
6a675ede49
Bump version to v0.25.0
2013-11-10 07:01:58 -08:00
Jingwen Owen Ou
21658b9aea
Bump version to v0.24.2
2013-10-23 16:25:34 -07:00
Jingwen Owen Ou
2d3c0eacd6
Bump version to v0.24.1
2013-10-23 16:24:04 -07:00
Jingwen Owen Ou
82e6f03932
Bump version to v0.24.0
2013-10-23 16:17:08 -07:00
Jingwen Owen Ou
c3e611eb17
Bump version to v0.23.0
2013-09-22 17:59:10 -07:00
Jingwen Owen Ou
10de728849
Bump version to v0.22.0
2013-09-21 07:34:13 -07:00
Jingwen Owen Ou
879a5b71e0
Bump version to v0.21.0
2013-09-20 15:13:27 -07:00
Jingwen Owen Ou
edabaedb74
Bump version to v0.20.1
2013-09-08 09:12:34 -07:00
Jingwen Owen Ou
30d240d4da
Bump version to v0.20.0
2013-09-01 15:50:16 -07:00
Jingwen Owen Ou
9e50218d2c
Bump version to v0.19.2
2013-08-16 07:17:46 -07:00
Jingwen Owen Ou
9c75c69a13
Bump version to v0.19.1
2013-07-29 10:50:49 -07:00
Jingwen Owen Ou
942d996910
Bump version to v0.19.0
2013-07-20 07:36:02 -07:00
Jingwen Owen Ou
393a61ed79
Bump version to v0.18.0
2013-07-19 23:10:05 -07:00
Jingwen Owen Ou
104d936288
Bump version to v0.17.0
2013-07-19 13:56:24 -07:00
Jingwen Owen Ou
ab686c68c6
Bump version to v0.16.0
2013-07-18 15:11:30 -07:00
Jingwen Owen Ou
2d12099f7b
Bump version to v0.15.0
2013-07-10 16:42:53 -07:00
Jingwen Owen Ou
3b53e51811
Bump version to v0.14.0
2013-07-09 14:58:31 -07:00
Jingwen Owen Ou
f2646392d4
Bump version to v0.13.1
2013-07-06 06:31:08 -07:00
Jingwen Owen Ou
ce80687b4c
Bump version to v0.13.0
2013-07-05 14:01:16 -07:00
Jingwen Owen Ou
4ce132b192
Bump version to v0.12.0
2013-07-04 16:29:37 -07:00
Jingwen Owen Ou
5ce8a11a9b
Bump version to 0.11.0
2013-07-02 12:43:27 -07:00
Jingwen Owen Ou
75b85d417f
Bump version to 0.10.0
2013-07-01 11:33:18 -07:00
Jingwen Owen Ou
160e624a52
Bump version to 0.9.0
2013-06-29 09:54:59 -07:00
Jingwen Owen Ou
ff5b5ce6d7
Fallthrough to git if no commands match
2013-06-28 16:49:49 -07:00
Jingwen Owen Ou
c294d2b615
Use Args for arguments
2013-06-28 16:49:49 -07:00
Jingwen Owen Ou
55155ec1c5
Bump version to 0.8.0
2013-06-24 15:44:50 -07:00
Jingwen Owen Ou
4699036c7f
Bump version to 0.7.0
2013-06-17 14:18:28 -07:00