https://github.com/faern/shuffle
Simple command line tool that can shuffle its arguments. Just to learn Rust
https://github.com/faern/shuffle
Last synced: about 1 year ago
JSON representation
Simple command line tool that can shuffle its arguments. Just to learn Rust
- Host: GitHub
- URL: https://github.com/faern/shuffle
- Owner: faern
- License: mit
- Created: 2015-01-28T23:04:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-01-30T14:38:21.000Z (over 11 years ago)
- Last Synced: 2024-10-17T15:44:43.634Z (over 1 year ago)
- Language: Rust
- Size: 168 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shuffle
This is an awesome tool solving a problem I never had. It's a simple command line tool for shuffling. It shuffles the arguments given to it.
## Usage
$ shuffle [options] [values ...]
Where options can be one of:
-h: Print usage and help.
-q (--quote-style): set quote style. Can be one of the following:
* none: No arguments get surrounded by quotes
* all: All arguments get surrounded by quotes
* spaces: Only arguments containing whitespace get surrounded by quotes (default)
### Examples
```
$ shuffle foo bar baz
baz foo bar
$ shuffle foo bar "baz rust"
bar "baz rust" foo
$ shuffle -q all foo bar "baz rust"
"baz rust" "foo" "bar"
$ shuffle -q none foo bar "baz rust"
baz rust bar foo
$ shuffle -q spaces foo bar "baz rust"
"baz rust" bar foo
```
Everything after a -- will be interpreted as values, not options. In case you want to shuffle something starting with -.
```
$ shuffle -q spaces hello -- foo -p "-q lol"
foo "-q lol" -p hello
```