This is a template for creating CLI applications in Python.
You can build your console application in app/app.py
This template uses the argparse module. (For details see the official documentation.)
In app.py is a function called main:
def main(args, options):All input arguments are passed into args as an array.
If you want to use optional arguments, add them using argparse's parser.add_argument in cli.py
Use the standard print() method to output results to stdout.
print(result)If you want to use external libraries, do the following:
- Write the library name and version in requirements.txt
- Add the following to codecheck.yml:
build:
- pip install -r requirements.txt