For automating docs (USAGE.md), unit tests and examples into our 7 SendGrid open source client libraries.
python app.py python tests > ./python/generated_files/unit_tests.py
cp ./python/generated_files/examples/unit_tests.md <path-to>/sendgrid-python/examples/test_sendgrid.py
python app.py python usage > ./python/generated_files/USAGE.md
cp ./python/generated_files/USAGE.md <path-to>/sendgrid-python/
This will populate the python/generated_files/examples folder
python app.py python examples
cp -R ./python/generated_files/examples/ <path-to>/sendgrid-python/examples/
python app.py php tests > ./php/generated_files/unit_tests.php
python app.py php usage > ./php/generated_files/USAGE.md
cp ./php/generated_files/USAGE.md <path-to>/sendgrid-php/
This will populate the php/generated_files/examples folder
python app.py php examples
cp -R ./php/generated_files/examples/ <path-to>/sendgrid-php/examples/
python app.py ruby tests > ./ruby/generated_files/unit_tests.rb
python app.py ruby usage > ./ruby/generated_files/USAGE.md
cp ./ruby/generated_files/USAGE.md <path-to>/sendgrid-ruby/
This will populate the ruby/generated_files/examples folder
python app.py ruby examples
cp -R ./ruby/generated_files/examples/ <path-to>/sendgrid-ruby/examples/
python app.py java tests > ./java/generated_files/unit_tests.java
python app.py java usage > ./java/generated_files/USAGE.md
cp ./java/generated_files/USAGE.md <path-to>/sendgrid-java/
This will populate the java/generated_files/examples folder
python app.py java examples
cp -R ./java/generated_files/examples/ <path-to>/sendgrid-java/examples/
python app.py nodejs tests > ./nodejs/generated_files/unit_tests.js
python app.py nodejs usage > ./nodejs/generated_files/USAGE.md
cp ./nodejs/generated_files/USAGE.md <path-to>/sendgrid-nodejs/
This will populate the nodejs/generated_files/examples folder
python app.py nodejs examples
cp -R ./nodejs/generated_files/examples/ <path-to>/sendgrid-nodejs/examples/
python app.py csharp tests > ./csharp/generated_files/unit_tests.cs
python app.py csharp usage > ./csharp/generated_files/USAGE.md
cp ./csharp/generated_files/USAGE.md <path-to>/sendgrid-csharp/
This will populate the csharp/generated_files/examples folder
python app.py csharp examples
cp -R ./csharp/generated_files/examples/ <path-to>/sendgrid-csharp/examples/
python app.py go tests > ./go/generated_files/unit_tests.go
python app.py go usage > ./go/generated_files/USAGE.md
cp ./go/generated_files/USAGE.md <path-to>/sendgrid-go/
This will populate the go/generated_files/examples folder
python app.py go examples
cp -R ./go/generated_files/examples/ <path-to>/sendgrid-go/examples/
python -m unittest discover -v