Is it possible to create dashed aliases automatically?
Right now I've added this code to the end of the tasks file as a workaround:
for item in locals().values():
if hasattr(item, 'aliases'):
item_name = item.__name__
replaced = item_name.replace('_', '-')
if replaced != item_name and replaced not in item.aliases:
item.aliases += (replaced,)
But seems, it is a good candidate to be included into the invoke itself.
Is it possible to create dashed aliases automatically?
Right now I've added this code to the end of the tasks file as a workaround:
But seems, it is a good candidate to be included into the invoke itself.