Граф коммитов

49 Коммитов

Автор SHA1 Сообщение Дата
Mislav Marohnić 369e7d298e Tweak `hub help hub-help` formatting 2018-12-29 14:58:42 +01:00
Mislav Marohnić ecaafce407 Have `ci-status` also query Checks API
The results of Status and Checks API are merged together.

Fixes #1787
2018-07-07 14:37:41 +02:00
Mislav Marohnić d7ef572416 Fix integration with git 2.18 shell completions
Wrap `git --list-cmds=others` command used by git built-in shell
completions to add a list of hub custom commands.

Fixes #1792
2018-07-07 12:38:02 +02:00
Mislav Marohnić 698721b20e Ensure all custom commands are listed in docs and shell completions 2018-07-06 22:25:22 +02:00
Andreas Baumann b2b3184bb4 added a preliminary delete repository command (because I need it) 2018-03-18 20:47:34 +01:00
Mohit Agarwal 5ccc4749f3
document sync command in help 2018-02-15 19:09:57 +05:30
Josh Betz 11888028e8 Sort hub commands
The rest of the sections are sorted alphabetically. This makes the hub
commands easier to read by sorting them the same way.
2017-06-23 11:42:25 -05:00
Johan Walles 2eb3056a8c Rename "review"->"pr"
The current functionality should really be moved to "hub pr checkout".
This is a step on the way.
2017-04-08 10:43:25 +02:00
Johan Walles dc7abb5c12 Add a "hub review" command
It wraps functionality already provided by "hub checkout". The advantage
with "hub review" are twofold:

* Discoverability. It wasn't until I started browsing the hub source
  code that I realized this functionality was present.
* Usability. Just typing the PR number is easier than having to figure
  out its URL.
2017-04-08 10:43:25 +02: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
Charlie Drage d7e02c157a Graduate from beta
Remove (beta) from help.go for release and issue.
2016-03-13 18:49:54 -04:00
Mislav Marohnić f74b54aa1b Add `hub help` documentation 2016-01-25 22:32:00 +11:00
Mislav Marohnić 7e62ef8c53 Look up `.txt` help pages when `man` is unavailable 2016-01-25 22:17:21 +11:00
Mislav Marohnić fc09731a8e Add `script/man` to generate individual man pages 2016-01-25 02:30:47 +11:00
Mislav Marohnić 21089ec0e4 Change `hub help` to display man pages when available
Instead of displaying plain text help, `hub help <command>` will now
search for man pages to display.

* If `man` is available, hub first tries to locate the local
  `../man/hub-<command>.1` file relative to the `hub` executable. If
  found, open it with `man`. If not, execute `man 1 hub-<command>`.

* Otherwise, resort to displaying plain text help.
2016-01-25 02:30:47 +11:00
Mislav Marohnić 0a789d77dd Allow displaying help for extended hub commands: `hub help hub-<CMD>`
For compatibility with git, `hub help checkout` will display the help
for git-checkout and there will be no information about hub extensions
to this command.

Now with `hub help hub-checkout`, hub will print the help text from
hub's extension to git-checkout.
2016-01-25 02:30:46 +11:00
Mislav Marohnić 0a45aa8ddc Reformat inline command help and expand usage options 2016-01-25 02:30:46 +11:00
Mislav Marohnić 1918e011a6 Restructure how command usage is stored and displayed
- No more `c.Short` property. Instead, the first line of `c.Long`
  property is considered a short command description.

- The `c.Usage` text can now contain multiple lines.

- The new `c.Synopsis()` method renders usage synopsis for humans:

    Usage: hub my-command --arg
           hub my-command --alternative-arg

- The new `c.HelpText()` method renders synopsis + full help text.
2016-01-25 02:23:26 +11:00
Mislav Marohnić 44a4761edf Have `hub help hub` open hub man page 2016-01-22 22:47:17 +11:00
Mislav Marohnić 7bb983648d Append to `git help` output instead of hardcoding it 2016-01-22 22:47:17 +11:00
Mislav Marohnić 4191e65d74 Avoid including `--version` in `hub help -a` output 2016-01-22 22:12:55 +11: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 1b0d45420c Show git’s own help when running `hub help <command>` for git commands
This is to fix https://github.com/github/hub/issues/635
2014-10-19 09:56:46 -07:00
Jingwen Owen Ou cc816c9df8 Provide option to build `hub` without autoupdate 2014-09-20 10:15:42 -07:00
Jingwen Owen Ou 1ecb1ac6c6 Rename update to selfupdate 2014-04-19 18:19:33 -07:00
Jingwen Owen Ou 68709fd69b Make help a Git extension command
We could delegate all the flags back to `git-help`
2014-01-10 07:43:15 -08:00
David Calavera 0d772cd71b Let git to print all the commands when we pass `-a` to help. 2014-01-10 14:54:43 +01:00
David Calavera e17b281c64 Add -a flag to be compliant with git. 2014-01-10 14:19:46 +01:00
Jingwen Owen Ou bd0e64b26f Generate man page for gh 2014-01-04 07:10:24 -08:00
David Calavera 71bc869b9b Fix help for issues. 2013-12-30 20:15:32 -08:00
Jingwen Owen Ou 80b02f6aea Fix help for releases 2013-12-30 19:59:34 -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
David Calavera 10b4c58fae Add the release command do the help. 2013-12-20 10:23:12 -08:00
Jingwen Owen Ou 7b8770d228 Add update command 2013-12-18 10:57:01 -08:00
Jingwen Owen Ou d3cf13b911 Rename issues to issue 2013-10-23 16:23:47 -07:00
Damian Gryski 61cf0712c7 Add documentation for 'issues' command 2013-10-23 22:24:26 +02:00
Jingwen Owen Ou ad65a08d76 Add beta to release help 2013-10-23 11:50:10 -07:00
Jingwen Owen Ou b807210a32 Listing GitHub releases 👯 2013-09-26 12:59:31 -07:00
Jingwen Owen Ou b0ec2212e5 Return from runner for help 2013-09-23 16:26:32 -07:00
Jingwen Owen Ou cd63eec5eb Change help menu 2013-07-05 13:58:51 -07:00
Jingwen Owen Ou ccef819232 Create init stub 2013-07-04 16:29:19 -07:00
Jingwen Owen Ou 2b27a77269 Fix help 2013-07-02 12:12:20 -07:00
Jingwen Owen Ou e3d6319fa5 Rename to Args#Params 2013-07-02 11:56:45 -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 f0379f80b2 Add checkout stub 2013-06-21 11:40:42 -07:00
Jingwen Owen Ou 9bf55c38f6 Fix help format 2013-06-17 14:15:59 -07:00
Jingwen Owen Ou 99a5050b03 Print remote and github commands 2013-06-17 14:09:47 -07:00
Jingwen Owen Ou 64fa816809 Move code to proper subpackages 2013-05-29 12:01:12 -07:00