From 415c2ac4829617818f5262213485d469353ac6b0 Mon Sep 17 00:00:00 2001 From: vilmibm Date: Mon, 14 Sep 2020 10:43:34 -0500 Subject: [PATCH] put gist in core commands --- pkg/cmd/gist/gist.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkg/cmd/gist/gist.go b/pkg/cmd/gist/gist.go index 7496a72f0..6c86cc431 100644 --- a/pkg/cmd/gist/gist.go +++ b/pkg/cmd/gist/gist.go @@ -1,6 +1,7 @@ package gist import ( + "github.com/MakeNowJust/heredoc" gistCreateCmd "github.com/cli/cli/pkg/cmd/gist/create" gistEditCmd "github.com/cli/cli/pkg/cmd/gist/edit" gistListCmd "github.com/cli/cli/pkg/cmd/gist/list" @@ -14,6 +15,14 @@ func NewCmdGist(f *cmdutil.Factory) *cobra.Command { Use: "gist", Short: "Create gists", Long: `Work with GitHub gists.`, + Annotations: map[string]string{ + "IsCore": "true", + "help:arguments": heredoc.Doc(` + A gist can be supplied as argument in any of the following formats: + - by ID, e.g. 5b0e0062eb8e9654adad7bb1d81cc75f + - by URL, e.g. "https://gist.github.com/OWNER/5b0e0062eb8e9654adad7bb1d81cc75f"; or + `), + }, } cmd.AddCommand(gistCreateCmd.NewCmdCreate(f, nil))