Add examples for creating .gitignore files

This commit is contained in:
bagtoad 2024-10-09 22:51:24 -06:00
parent 922a157206
commit 95ca152fea

View file

@ -45,6 +45,12 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman
# View the Python gitignore template
gh repo gitignore view Python
# Create a new .gitignore file using the Go template
gh repo gitignore view Go > .gitignore
# Create a new .gitignore file using the Python template
gh repo gitignore view Python > .gitignore
`),
Args: cobra.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error {