This is a simple CLI that displays random quotes from the movie OSS 117 using the https://oss117quotes.xyz/ API.
- Node.js 20 or higher
- install
npm install -g @alekart/oss-117
- link the binary
npm link @alekart/oss-117
- Run the CLI
oss
- Clone the repository
git clone https://github.com/alekart/oss-117.git oss
- Install the dependencies
cd oss
npm install
- Run the CLI
- Run the CLI via path to file (path is relative to the root of the project)
./src/oss.js
- Or add the binary to your PATH
- Link the binary
npm link
- and then run the cli with global command from anywhere in terminal
oss
- Link the binary
By default, the CLI will display a random quote from the movie OSS 117, but you can also use the following arguments. The arguments can be combined to get a more specific results.
-
--character
|-c
- provide a character name to get a quote from a specific character -
--number
|-n
- provide a number to get multiple quotes -
--keyword
|-k
- provide a specific word to get a quote containing that word (case-insensitive).
-
--list
|-l
- display list of available characters to use as --character option -
--help
|-h
- display the help message (usage and options) -
--version
- display CLI version
oss --character hubert -n 3
oss --keyword=blanquette --number=3