cli/command
Mislav Marohnić 2915abc2ba Improve user-friendliness of completion command
When ran directly in the terminal, the command now errors out with:

    $ gh completion
    error: the value for `--shell` is required
    see `gh completion --help` for more information

This is to avoid the previously default bash code output confusing the
user if they ran the command out of curiousity.

A backwards compatibility layer is present here: if stdout is not a
terminal, then output bash code like before. This is to support users
who have already added a line like this to their bash profile:

    eval "$(gh completion)"
2020-04-07 16:58:50 +02:00
..
completion.go Improve user-friendliness of completion command 2020-04-07 16:58:50 +02:00
completion_test.go Clarify error in powershell completion test 2020-04-03 07:18:19 -05:00
issue.go Merge pull request #667 from doi-t/view-the-current-state 2020-04-03 19:41:29 +02:00
issue_test.go Merge pull request #667 from doi-t/view-the-current-state 2020-04-03 19:41:29 +02:00
pr.go Roll back the place of colorFuncForState 2020-04-02 23:58:28 +09:00
pr_checkout.go Merge branch 'master' into pr-status-no-commits 2020-03-30 12:04:02 -05:00
pr_checkout_test.go Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
pr_create.go Fix auto-forking scenario in pr create 2020-04-01 19:37:56 +02:00
pr_create_test.go Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
pr_test.go Merge pull request #667 from doi-t/view-the-current-state 2020-04-03 19:41:29 +02:00
repo.go Rename parseExtraArgs 2020-04-03 10:10:46 -04:00
repo_test.go Merge pull request #727 from thefotios/respect-clone-target 2020-04-03 19:18:05 +02:00
root.go Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
root_test.go Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
testing.go Code fixes informed by golangci-lint failures (#738) 2020-04-03 16:33:34 +02:00
title_body_survey.go review feedback 2020-03-16 15:32:35 -05:00