code: func NewRenameCommand(dockerCli command.Cli) *cobra.Command {
  	var opts renameOptions
  
  	cmd := &cobra.Command{
  		Use:   "rename CONTAINER NEW_NAME",
  		Short: "Rename a container",
  		Args:  cli.ExactArgs(2),
  		RunE: func(cmd *cobra.Command, args []string) error {
  			opts.oldName = args[0]
  			opts.newName = args[1]
  			return runRename(dockerCli, &opts)
  		},
  	}
  	return cmd
  }
docs: // NewRenameCommand creates a new cobra.Command for `docker rename`