This is a simple CLI implented as a Python package to automate tasks on Moodle instances. The CLI can be installed and invoked to display help with available commands as follows:
$ pip install .
$ moodle-cli
When developing, you may want to install the project in editable mode:
$ pip install -e .
The code can be linted and tested as well:
$ pip install .[test]
$ flake8
$ pytest
Code coverage reports can also be generated when running tests:
$ pytest --cov=moodlecli --cov-report=term --cov-report=html