From 22235c2f974b5a0843aba28f65aa4614e8a43741 Mon Sep 17 00:00:00 2001 From: Jon Lorusso Date: Mon, 21 Jun 2021 11:25:49 -0400 Subject: [PATCH] Update documentation for gist create command to reflect default of secret. --- pkg/cmd/gist/create/create.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/cmd/gist/create/create.go b/pkg/cmd/gist/create/create.go index c10b5d27b..afd72851d 100644 --- a/pkg/cmd/gist/create/create.go +++ b/pkg/cmd/gist/create/create.go @@ -58,7 +58,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co Gists can be created from one or multiple files. Alternatively, pass "-" as file name to read from standard input. - By default, gists are private; use '--public' to make publicly listed ones. + By default, gists are secret; use '--public' to make publicly listed ones. `), Example: heredoc.Doc(` # publish file 'hello.py' as a public gist @@ -97,7 +97,7 @@ func NewCmdCreate(f *cmdutil.Factory, runF func(*CreateOptions) error) *cobra.Co cmd.Flags().StringVarP(&opts.Description, "desc", "d", "", "A description for this gist") cmd.Flags().BoolVarP(&opts.WebMode, "web", "w", false, "Open the web browser with created gist") - cmd.Flags().BoolVarP(&opts.Public, "public", "p", false, "List the gist publicly (default: private)") + cmd.Flags().BoolVarP(&opts.Public, "public", "p", false, "List the gist publicly (default: secret)") cmd.Flags().StringVarP(&opts.FilenameOverride, "filename", "f", "", "Provide a filename to be used when reading from STDIN") return cmd }