From 95ca152fea6ef6ce6dbe25ed23879cb24bc7e71c Mon Sep 17 00:00:00 2001 From: bagtoad <47394200+BagToad@users.noreply.github.com> Date: Wed, 9 Oct 2024 22:51:24 -0600 Subject: [PATCH] Add examples for creating `.gitignore` files --- pkg/cmd/repo/gitignore/view/view.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/cmd/repo/gitignore/view/view.go b/pkg/cmd/repo/gitignore/view/view.go index a679ef946..a3e0125b8 100644 --- a/pkg/cmd/repo/gitignore/view/view.go +++ b/pkg/cmd/repo/gitignore/view/view.go @@ -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 {