Use --exit-status instead of -e in example
This commit is contained in:
parent
77de8e9356
commit
0b79471024
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue