code: func NewCmdConfigRenameContext(out io.Writer, configAccess clientcmd.ConfigAccess) *cobra.Command {
  	options := &RenameContextOptions{configAccess: configAccess}
  
  	cmd := &cobra.Command{
  		Use:                   renameContextUse,
  		DisableFlagsInUseLine: true,
  		Short:                 renameContextShort,
  		Long:                  renameContextLong,
  		Example:               renameContextExample,
  		Run: func(cmd *cobra.Command, args []string) {
  			cmdutil.CheckErr(options.Complete(cmd, args, out))
  			cmdutil.CheckErr(options.Validate())
  			cmdutil.CheckErr(options.RunRenameContext(out))
  		},
  	}
  	return cmd
  }
docs: // NewCmdConfigRenameContext creates a command object for the "rename-context" action