By doing graceful shutdown, we're able to properly close all of the open
resources such as modem connections and ongoing sessions.
This will allow transport drivers controlling stateful TNCs (e.g.
ptc-go) to recover the initial TNC state before termination.
Resolves#314
Addresses https://github.com/la5nta/pat/issues/297
This commit adds support for non-interactive message sending from the
command line, in order to support scriptable interactions.
To do this, we fork the compose path into 3:
- Interactive (existing)
- Non-Interactive (based on command-line arguments and stdin)
- Reply (synonym for interactive)
* Replace(..., -1) with ReplaceAll
* Variable names hiding packages
* Error messages start with lowercase and no end punctuation
* Don't `defer` in a loop
* Etc.