cli/command
vilmibm 36ade42ba3 scriptability improvements: issue commands
This commit is part of work to make gh more scriptable. It includes both
some general purpose helpers towards this goal as well as improvements
to the issue commands. Other commands will follow.

- Adds `utils/terminal.go` for finding out about gh's execution environment
- introduces `stubTerminal` for either faking being attached to a tty or not during tests
- updates issue commands to behave better when not attached to a tty:
  - issue list doesn't print fuzzy dates
  - issue list doesn't print header
  - issue list prints state explicitly
  - issue create no longer hangs
  - issue create fails with clear error unless both -t and -b are specified
  - issue view prints raw issue body
  - issue view prints metadata in a consistent, linewise format
2020-07-14 12:30:53 -05:00
..
alias.go fix typo 2020-06-22 15:19:50 +08:00
alias_test.go start on alias delete 2020-06-05 13:04:45 -05:00
completion.go Remove quotes around link 2020-06-08 14:28:19 +02:00
completion_test.go Update all calls to RunCommand 2020-05-05 09:20:01 -07:00
config.go Adding config set example for vscode to docs 2020-06-30 18:17:05 -04:00
config_test.go Write all per-host config entries to hosts.yml 2020-06-02 15:35:13 +02:00
credits.go Fix indentation of Example blocks 2020-06-11 20:31:37 +02:00
gist.go Fix indentation of Example blocks 2020-06-11 20:31:37 +02:00
gist_test.go just use a map + stdin test 2020-05-20 17:44:09 -05:00
help.go Add special case for unsupported gh <command> help 2020-06-16 16:06:51 +02:00
issue.go scriptability improvements: issue commands 2020-07-14 12:30:53 -05:00
issue_test.go scriptability improvements: issue commands 2020-07-14 12:30:53 -05:00
pr.go Title of the PR will be shown while closing, merging and re-opening & test cases updated 2020-07-08 12:22:38 +05:30
pr_checkout.go Reset base branch when URL is used 2020-06-03 14:34:13 -07:00
pr_checkout_test.go Don't need extra determineBaseRepo call 2020-06-04 10:30:41 -07:00
pr_create.go Merge remote-tracking branch 'origin' into fix-incorrect-docs 2020-06-16 17:08:10 +02:00
pr_create_test.go Name more queries in test stubs 2020-07-10 20:20:33 +02:00
pr_diff.go Declare -R, --repo flag on all issue and pr subcommands 2020-06-30 18:51:53 +02:00
pr_diff_test.go Fix test 2020-05-27 08:38:30 -07:00
pr_lookup.go Don't need extra determineBaseRepo call 2020-06-04 10:30:41 -07:00
pr_review.go Declare -R, --repo flag on all issue and pr subcommands 2020-06-30 18:51:53 +02:00
pr_review_test.go redundant type slice-string 2020-06-11 07:32:09 +08:00
pr_test.go Match named queries in test stubs 2020-07-10 20:04:54 +02:00
repo.go Fix indentation of Example blocks 2020-06-11 20:31:37 +02:00
repo_test.go Name more queries in test stubs 2020-07-10 20:20:33 +02:00
root.go scriptability improvements: issue commands 2020-07-14 12:30:53 -05:00
root_test.go respect ssh 2020-04-22 14:21:01 -05:00
testing.go scriptability improvements: issue commands 2020-07-14 12:30:53 -05:00
title_body_survey.go Fix pr create not using .github/pull_request_template.md 2020-06-18 09:00:56 +05:30