diff --git a/pkg/cmd/gist/rename/rename.go b/pkg/cmd/gist/rename/rename.go index 5ccd81e90..6cf509632 100644 --- a/pkg/cmd/gist/rename/rename.go +++ b/pkg/cmd/gist/rename/rename.go @@ -21,29 +21,19 @@ type RenameOptions struct { IO *iostreams.IOStreams Config func() (config.Config, error) HttpClient func() (*http.Client, error) - Prompter iprompter - DoConfirm bool Selector string OldFileName string NewFileName string } -type iprompter interface { - Input(string, string) (string, error) - Confirm(string, bool) (bool, error) -} - func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Command { opts := &RenameOptions{ IO: f.IOStreams, HttpClient: f.HttpClient, Config: f.Config, - Prompter: f.Prompter, } - var confirm bool - cmd := &cobra.Command{ Use: "rename [ | ] ", Short: "Rename a file in a gist", @@ -66,8 +56,6 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co }, } - cmd.Flags().BoolVarP(&confirm, "yes", "y", false, "Skip the confirmation prompt") - return cmd }