Is there anyway to create nested management commands in Django, similar to what the docker
and kubectl
have? For example, let's say I need to have the following structure:
|-->manage.py
|-->restaurant
|-->list
|-->get
|-->employee
|-->list
|-->get
|-->delete
The following commands should all be possible:
./manage.py -h
./manage.py restaurant -h
./manage.py restaurant list
./manage.py employee list
./manage.py restaurant get ""
./manage.py employee delete tiffany
The argparse subparser looks promising but I feel like there should be an easier way using python modules in the app/management/commands
or something like that.