From a42d3e2f79efdc8487221728468c4554848ffc33 Mon Sep 17 00:00:00 2001 From: bagtoad <47394200+BagToad@users.noreply.github.com> Date: Wed, 9 Oct 2024 21:46:41 -0600 Subject: [PATCH] Fix license view help doc, add LICENSE.md example --- pkg/cmd/repo/license/view/view.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkg/cmd/repo/license/view/view.go b/pkg/cmd/repo/license/view/view.go index 8cbf5b05b..16f3b27a1 100644 --- a/pkg/cmd/repo/license/view/view.go +++ b/pkg/cmd/repo/license/view/view.go @@ -39,14 +39,17 @@ func NewCmdView(f *cmdutil.Factory, runF func(*ViewOptions) error) *cobra.Comman Run %[1]sgh repo license list%[1]s to see available commonly used licenses. For even more licenses, visit . `, "`"), Example: heredoc.Doc(` - # View the MIT license template + # View the MIT license gh repo license view MIT - # View the GNU AGPL-3.0 license template + # View the GNU AGPL-3.0 license gh repo license view AGPL-3.0 - # View the Apache-2.0 license template + # View the Apache-2.0 license gh repo license view Apache-2.0 + + # Create a LICENSE.md with the MIT license + gh repo license view MIT > LICENSE.md `), Args: cobra.ExactArgs(1), RunE: func(cmd *cobra.Command, args []string) error {