def on_cleanup_error(function, path, excinfo):
                click.secho("warning: failed to remove file or directory: {}\n"
                            "please delete it manually.".format(path),
                            fg="red")
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)