Sam Coe
f0b534f92e
Move build to internal
2020-10-21 13:31:32 +02:00
Sam Coe
9df3bd9344
Change command pkg to build pkg
2020-10-21 11:16:49 +02:00
Sam Coe
0f8084d039
Move functions from command/root to main
2020-10-21 10:46:09 +02:00
Mislav Marohnić
35517ebd77
Skip update notifier in Codespaces
2020-10-16 17:20:12 +00:00
Mislav Marohnić
ce8f37aca2
💅 tweak update notifier
2020-10-09 18:15:28 +02:00
ShubhankarKG
78b67fabdd
1. Added GH_NO_UPDATE_NOTIFIER to hhelp_topics
...
2. Updated test to check if passed variable is not empty
2020-10-08 21:22:26 +05:30
ShubhankarKG
3a22ab7eba
Update shouldCheckForUpdate
2020-10-08 12:04:57 +05:30
Mislav Marohnić
b2de27c624
Fix Survey's presentation of default values
...
For default values for e.g. `Input` prompts, Survey uses the literal "white" color, which makes no sense on dark terminals and is literally invisible on light backgrounds.
This overrides Survey to output a gray color for 256-color terminals and "default" for basic terminals.
2020-09-16 17:57:13 +02:00
Mislav Marohnić
086d8ed29a
Merge remote-tracking branch 'origin' into color-env
2020-09-16 16:51:38 +02:00
Mislav Marohnić
f6dd1bcd0a
Add the pager config option
2020-09-16 16:15:37 +02:00
Nate Smith
5a8df475b9
Merge pull request #1639 from cli/disable-prompts
...
Support "prompt" config setting
2020-09-11 12:07:44 -05:00
vilmibm
2e95e279e3
reuse cfg reference
2020-09-11 11:38:26 -05:00
vilmibm
1073c97409
review feedback
2020-09-11 11:36:24 -05:00
Tony Rosler
4ef8a75ae2
Handle runtime error on bad user input ( #1652 )
2020-09-11 11:23:24 +02:00
vilmibm
fcc0e75a50
do not pass entire config to iostreams
2020-09-10 12:13:48 -05:00
Mislav Marohnić
a0e0f31363
Disable ANSI color in prompts when color is disabled
2020-09-07 13:10:43 +02:00
Mislav Marohnić
2bb5e052d8
Send GITHUB_TOKEN to github.com and GITHUB_ENTERPRISE_TOKEN to GHES
2020-09-04 17:25:37 +02:00
vilmibm
2850ef0e17
forgot to run goimports
2020-08-24 13:32:20 -05:00
vilmibm
f3d1f9e56e
no ascii art
2020-08-24 13:29:51 -05:00
vilmibm
6408ae111c
oops
2020-08-19 11:37:05 -05:00
vilmibm
cba401deb0
check parent annotatiosn for auth skip
2020-08-19 10:21:19 -05:00
vilmibm
9975cbf291
whitespace
2020-08-19 10:16:13 -05:00
vilmibm
919fb02f34
s/one/day/
2020-08-19 10:15:04 -05:00
vilmibm
c02b396971
do not print ascii art for narrow terminal
2020-08-19 10:11:06 -05:00
vilmibm
3ef5687070
avoid nil cmd
2020-08-19 10:10:49 -05:00
vilmibm
bf3585c30b
notice 401 errors and provide hint
2020-08-18 17:57:52 -05:00
vilmibm
b1a6346e07
take out auto browser flow
2020-08-18 17:57:52 -05:00
vilmibm
231ed71e7f
TODOs
2020-08-18 17:57:52 -05:00
vilmibm
850a7ef243
print nice login message when no auth detected
2020-08-18 17:57:52 -05:00
Mislav Marohnić
c095a4bead
Allow explicitly specifying the hostname for gh operations
...
Accept the "HOST/OWNER/REPO" syntax or passing a full URL for both the
`--repo` flag and the GH_REPO environment variable and allow setting
GH_HOST environment variable to override just the hostname for
operations that assume "github.com" by default.
Examples:
$ gh repo clone example.org/owner/repo
$ GH_HOST=example.org gh repo clone repo
$ GH_HOST=example.org gh api user
$ GH_HOST=example.org gh gist create myfile.txt
$ gh issue list -R example.org/owner/repo
$ gh issue list -R https://example.org/owner/repo.git
$ GH_REPO=example.org/owner/repo gh issue list
2020-08-12 16:16:34 +02:00
Mislav Marohnić
2b9de23637
Extract alias expansion into a separate package
2020-08-11 15:18:48 +02:00
Mislav Marohnić
aef1a4ba4d
Extract root command and factory logic into separate packages
2020-08-07 14:40:33 +02:00
vilmibm
3f5893bcb4
fix variable shadowing
2020-07-15 12:36:45 -05:00
vilmibm
cfb8eebf30
quietly return exit code of external command
2020-07-15 11:39:48 -05:00
vilmibm
bbd756a99f
split shell alias execution into new function
2020-07-14 16:13:00 -05:00
vilmibm
3a9167cfe4
Implement shell aliases
...
This command adds --shell to `gh alias set`, allowing specified aliases
to be run through a shell interpreter.
2020-07-14 16:12:07 -05:00
Mislav Marohnić
311536433c
The ultimate --help & spelling suggester handler
...
- short command usage output now lists subcommands instead of flags for
parent commands
- mistyping a subcommand now results in a non-zero exit status
- requesting `--help` or `-h` for any command now prints help docs on
stdout and exits with 0
2020-06-16 15:41:46 +02:00
vilmibm
8773a997ee
support DEBUG when expanding aliases
2020-06-02 11:26:44 -05:00
vilmibm
2627c5bb74
only process aliases when non-existent command passed
2020-06-02 11:26:44 -05:00
vilmibm
09fa75e141
implement gh alias set
2020-06-02 11:26:44 -05:00
Mislav Marohnić
2e93a065b1
Merge remote-tracking branch 'origin/master' into api-command
2020-05-27 12:56:06 +02:00
Corey Johnson
e5b78d3342
Fix lint errors
2020-05-20 11:21:05 -07:00
Mislav Marohnić
d8146cd16e
Extract cmdutil package
2020-05-20 15:21:31 +02:00
Mark Furland
e13fc2465f
use consistent var declaration format
2020-05-19 12:21:20 -04:00
Mark Furland
1cd6e3f9d3
pass some options to GenManTree
2020-05-12 10:17:56 -04:00
Mark Furland
e33706fbf4
Add flags for man vs website to cmd/gen-docs
2020-05-12 09:51:25 -04:00
Mark Furland
92130d91ba
Minimal manpage generation from cobra
2020-05-12 09:10:09 -04:00
vilmibm
c4693077aa
move config stuff to its own package
2020-04-20 13:57:16 -05:00
Mislav Marohnić
79f749a02b
Avoid checking for updates during gh completion
...
This is due to the fact that `gh completion` can be programatically used
during shell startup and we definitely don't want to
1. slow down people's startup time
2. show any upgrade notice until the user has invoked `gh` manually
2020-04-07 16:46:36 +02:00
Mislav Marohnić
030538871d
Fix make site-docs
2020-03-03 23:34:32 +01:00