@@ -22,15 +22,11 @@ import (
2222 "github.com/cli/cli/internal/ghrepo"
2323 "github.com/cli/cli/internal/run"
2424 apiCmd "github.com/cli/cli/pkg/cmd/api"
25- gistCreateCmd "github.com/cli/cli/pkg/cmd/gist/create "
25+ gistCmd "github.com/cli/cli/pkg/cmd/gist"
2626 issueCmd "github.com/cli/cli/pkg/cmd/issue"
2727 prCmd "github.com/cli/cli/pkg/cmd/pr"
2828 repoCmd "github.com/cli/cli/pkg/cmd/repo"
29- repoCloneCmd "github.com/cli/cli/pkg/cmd/repo/clone"
30- repoCreateCmd "github.com/cli/cli/pkg/cmd/repo/create"
3129 creditsCmd "github.com/cli/cli/pkg/cmd/repo/credits"
32- repoForkCmd "github.com/cli/cli/pkg/cmd/repo/fork"
33- repoViewCmd "github.com/cli/cli/pkg/cmd/repo/view"
3430 "github.com/cli/cli/pkg/cmdutil"
3531 "github.com/cli/cli/pkg/iostreams"
3632 "github.com/cli/cli/utils"
@@ -123,15 +119,9 @@ func init() {
123119 return currentBranch , nil
124120 },
125121 }
126- RootCmd .AddCommand (apiCmd .NewCmdApi (cmdFactory , nil ))
127122
128- gistCmd := & cobra.Command {
129- Use : "gist" ,
130- Short : "Create gists" ,
131- Long : `Work with GitHub gists.` ,
132- }
133- RootCmd .AddCommand (gistCmd )
134- gistCmd .AddCommand (gistCreateCmd .NewCmdCreate (cmdFactory , nil ))
123+ RootCmd .AddCommand (apiCmd .NewCmdApi (cmdFactory , nil ))
124+ RootCmd .AddCommand (gistCmd .NewCmdGist (cmdFactory ))
135125
136126 resolvedBaseRepo := func () (ghrepo.Interface , error ) {
137127 httpClient , err := cmdFactory .HttpClient ()
@@ -162,15 +152,9 @@ func init() {
162152
163153 repoResolvingCmdFactory .BaseRepo = resolvedBaseRepo
164154
165- RootCmd .AddCommand (repoCmd .Cmd )
166- repoCmd .Cmd .AddCommand (repoViewCmd .NewCmdView (& repoResolvingCmdFactory , nil ))
167- repoCmd .Cmd .AddCommand (repoForkCmd .NewCmdFork (& repoResolvingCmdFactory , nil ))
168- repoCmd .Cmd .AddCommand (repoCloneCmd .NewCmdClone (cmdFactory , nil ))
169- repoCmd .Cmd .AddCommand (repoCreateCmd .NewCmdCreate (cmdFactory , nil ))
170- repoCmd .Cmd .AddCommand (creditsCmd .NewCmdRepoCredits (& repoResolvingCmdFactory , nil ))
171-
172155 RootCmd .AddCommand (prCmd .NewCmdPR (& repoResolvingCmdFactory ))
173156 RootCmd .AddCommand (issueCmd .NewCmdIssue (& repoResolvingCmdFactory ))
157+ RootCmd .AddCommand (repoCmd .NewCmdRepo (& repoResolvingCmdFactory ))
174158 RootCmd .AddCommand (creditsCmd .NewCmdCredits (cmdFactory , nil ))
175159}
176160
0 commit comments