6 ms·
Cool! I've recently started writing many of my shell scripts in swift [shameless plug], but nice command line argument processing was something I wasn't looking
by cobbal 7y ago
Cool! I've recently started writing many of my shell scripts in swift [shameless plug], but nice command line argument processing was something I wasn't looking forward to tackling. Now it looks like I won't have to :)
[shameless plug]: https://github.com/cobbal/swsh https://github.com/cobbal/swsh
Description:
A shell-scripting library for Swift, inspired by scsh.
swsh makes writing shell scripts more fun by exchanging bash (or similar) for a better thought-out language like Swift. In the process, a small amount of conciseness is traded for better quoting, error handling, and access to libraries.