shellwords-crystal v0.1.0
Shellwords
This module manipulates strings according to the word parsing rules of the UNIX Bourne shell. Fork of the Ruby shellwords gem.
The shellwords() function was originally a port of shellwords.pl, but modified to conform to the Shell & Utilities volume of the IEEE Std 1003.1-2008, 2016 Edition [1].
[1] IEEE Std 1003.1-2008, 2016 Edition, the Shell & Utilities volume
Installation
- Add the dependency to your
shard.yml
:
dependencies:
shellwords:
github: szTheory/shellwords-crystal
- Run
shards install
Usage
require 'shellwords'
argv = Shellwords.shellsplit('three blind "mice"')
argv #=> ["three", "blind", "mice"]
Development
After checking out the repo, install the shard dependencies. Then, run crystal spec
to run the specs. You can also run bin/console
for an interactive prompt that will allow you to experiment.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/szTheory/shellwords-crystal
Repository
shellwords-crystal
Owner
Statistic
- 2
- 0
- 1
- 1
- 1
- almost 4 years ago
- February 4, 2021
License
Other
Links
Synced at
Sat, 21 Dec 2024 17:21:24 GMT
Languages