fix: align example indentation with codebase convention
This commit is contained in:
parent
d7f1d8e89d
commit
a331ef7f8f
1 changed files with 9 additions and 9 deletions
|
|
@ -66,18 +66,18 @@ func NewCmdDiff(f *cmdutil.Factory, runF func(*DiffOptions) error) *cobra.Comman
|
|||
the flag to exclude multiple patterns.
|
||||
`, "`"),
|
||||
Example: heredoc.Doc(`
|
||||
# See diff for current branch
|
||||
$ gh pr diff
|
||||
# See diff for current branch
|
||||
$ gh pr diff
|
||||
|
||||
# See diff for a specific PR
|
||||
$ gh pr diff 123
|
||||
# See diff for a specific PR
|
||||
$ gh pr diff 123
|
||||
|
||||
# Exclude files from diff output
|
||||
$ gh pr diff --exclude '*.yml' --exclude 'generated/*'
|
||||
# Exclude files from diff output
|
||||
$ gh pr diff --exclude '*.yml' --exclude 'generated/*'
|
||||
|
||||
# Exclude matching files by name
|
||||
$ gh pr diff --name-only --exclude '*.generated.*'
|
||||
`),
|
||||
# Exclude matching files by name
|
||||
$ gh pr diff --name-only --exclude '*.generated.*'
|
||||
`),
|
||||
Args: cobra.MaximumNArgs(1),
|
||||
RunE: func(cmd *cobra.Command, args []string) error {
|
||||
opts.Finder = shared.NewFinder(f)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue