Merge pull request #3407 from skedwards88/patch-1

Use `--exit-status` instead of `-e` in example
This commit is contained in:
Nate Smith 2021-04-12 17:48:51 -05:00 committed by GitHub
commit 861fd5b5e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
$ gh run view --log --job 456789
# Exit non-zero if a run failed
$ gh run view 0451 -e && echo "run pending or passed"
$ gh run view 0451 --exit-status && echo "run pending or passed"
`),
RunE: func(cmd *cobra.Command, args []string) error {
// support `-R, --repo` override