It's a simple example for showing some basic API we can use while making a Swift Command Line Tool.
I have separated each part into different commits. You can check out each commit step to try each part:
- How to echo
- How to read the arguments
- How to read/write environments
- How to get current position
- How to run bash script inside Swift command line.