adjective-adjective-animal/cli/README.md

66 lines
1.7 KiB
Markdown
Raw Permalink Normal View History

2018-08-07 00:08:48 -04:00
# aaa - cli
2015-11-02 11:25:58 -05:00
2018-08-07 00:08:48 -04:00
[![Build Status](https://travis-ci.org/moparisthebest/adjective-adjective-animal.svg?branch=master)](https://travis-ci.org/moparisthebest/adjective-adjective-animal) [![license](http://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/moparisthebest/adjective-adjective-animal/blob/master/LICENSE-MIT)
2015-11-02 11:24:49 -05:00
2018-08-07 00:08:48 -04:00
Random name generator tool that gives you suitably random and reasonably unique human readable
(and fairly adorable) ids, ala GiphyCat
2015-11-02 11:24:49 -05:00
## Usage
Simple! Run without any parameters, you get a name:
```sh
2018-08-07 00:08:48 -04:00
> aaa
IndustrialSecretiveSwan
2015-11-02 11:24:49 -05:00
```
Need more? Tell it how many:
```sh
2018-08-07 00:08:48 -04:00
> aaa 10
IronfistedSubhexagonalTern
HoroscopicDrowsyBlackfish
QuarrelsomeDoubtfulCommabutterfly
UniqueHurtYaffle
GrubbyBoskyIchthyosaurs
BolsteredSyntheticTopi
PredespondentAssociativeOkapi
StereotypedComfortableScaup
CuratorialLacklustreWyvern
DazedStonyGiantschnauze
2015-11-02 11:24:49 -05:00
```
If you're ever confused, at least there's help:
```sh
2018-08-07 00:08:48 -04:00
> aaa --help
aaa 0.1.0
2015-11-02 11:24:49 -05:00
2018-08-07 00:08:48 -04:00
Author: Travis Burtrum <admin.github@moparisthebest.com>
A random name generator with results like `DeliriousHungryDolphin'.
2015-11-02 11:24:49 -05:00
USAGE:
2018-08-07 00:08:48 -04:00
aaa [amount]
2015-11-02 11:24:49 -05:00
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
ARGS:
2018-08-07 00:08:48 -04:00
<amount> Number of names to generate (default: 1)
2015-11-02 11:24:49 -05:00
```
## Installation
### Building from source
If you want (or need) to build the CLI from source, the following should not take too long. Note that you'll need a version of Rust (and Cargo which ships with the Rust distributions) before running:
```sh
2018-08-07 00:08:48 -04:00
> git clone https://github.com/moparisthebest/adjective-adjective-animal.git
> cd adjective-adjective-animal/cli
2015-11-02 11:24:49 -05:00
> cargo build --release
# test it out
2018-08-07 00:08:48 -04:00
> ./target/release/aaa
2015-11-02 11:24:49 -05:00
```