def warning(message, **kwargs):
    kwargs["fg"] = kwargs.get("fg", "red")
    click.secho(u"warning: {}".format(message), **kwargs)
def reorder_item(self, item, position):
    new_position = min(max(position, 0), len(self._items) - 1)