diff --git a/pkg/cmd/repo/rename/rename.go b/pkg/cmd/repo/rename/rename.go new file mode 100644 index 000000000..11597b618 --- /dev/null +++ b/pkg/cmd/repo/rename/rename.go @@ -0,0 +1,73 @@ +package rename + +import ( + "fmt" + "net/http" + "strings" + + "github.com/cli/cli/v2/api" + "github.com/cli/cli/v2/internal/ghinstance" + "github.com/cli/cli/v2/internal/ghrepo" + "github.com/cli/cli/v2/pkg/cmdutil" + "github.com/cli/cli/v2/pkg/iostreams" + "github.com/spf13/cobra" +) + +type RenameOptions struct{ + HttpClient func() (*http.Client, error) + IO *iostreams.IOStreams + RepoName string +} + +func MewCmcRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Command { + opts:= &RenameOptions { + IO: f.IOStreams, + HttpClient: f.HttpClient, + } + + cmd := &cobra.Command{ + Use: "rename