starwars-smarttbot
v1.0.9
Published
This is a cool CLI for Smarttbot
Downloads
2
Readme
starwars-smarttbot
This is a cool CLI app for Smarttbot's job application
Usage
$ npm install -g starwars-smarttbot
$ starwars COMMAND
running command...
$ starwars (-v|--version|version)
starwars-smarttbot/1.0.7 linux-x64 node-v10.15.0
$ starwars --help [COMMAND]
USAGE
$ starwars COMMAND
...
Commands
starwars film
starwars hello
starwars help [COMMAND]
starwars people
starwars pilot
starwars planet
starwars specie
starwars starship
starwars vehicle
starwars film
Get Films information
USAGE
$ starwars film
OPTIONS
-t, --test Indicates that its a mocha call
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format
--filter=filter filter property by partial string matching, ex: name=foo
--id=id Search for an ID
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--sort=sort property to sort by (prepend '-' for descending)
DESCRIPTION
...
You can search for all Films in the API, or search for a single one by the ID
EXAMPLES
$ starwars film
$ starwars film --id="1"
$ starwars --filter="title=New"
See code: src/commands/film.js
starwars hello
Say hello for someone, or for everyone!
USAGE
$ starwars hello
OPTIONS
-n, --name=name Name to say hello
-t, --test Indicates that its a mocha call
DESCRIPTION
If you want to say hello for someone, try something like this two examples:
$ starwars hello -n=Eduardo
$ starwars hello --name=Eduardo
See code: src/commands/hello.js
starwars help [COMMAND]
display help for starwars
USAGE
$ starwars help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
starwars people
Get People information
USAGE
$ starwars people
OPTIONS
-t, --test Indicates that its a mocha call
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format
--filter=filter filter property by partial string matching, ex: name=foo
--id=id Search for an ID
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--sort=sort property to sort by (prepend '-' for descending)
DESCRIPTION
...
You can search for all People in the API, or search for a single one by the ID
EXAMPLES
$ starwars people
$ starwars people --id="4"
$ starwars --filter="name=Luke"
See code: src/commands/people.js
starwars pilot
Search for the best pilots of the galaxy!
USAGE
$ starwars pilot
OPTIONS
-n, --name=name name to print
-t, --test Indicates that its a mocha call
DESCRIPTION
...
This command brings pilot's vehicle information, including name and max atmosphering speed
EXAMPLE
$ starwars pilot
See code: src/commands/pilot.js
starwars planet
Get Planets information
USAGE
$ starwars planet
OPTIONS
-t, --test Indicates that its a mocha call
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format
--filter=filter filter property by partial string matching, ex: name=foo
--id=id Search for an ID
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--sort=sort property to sort by (prepend '-' for descending)
DESCRIPTION
...
You can search for all Planets in the API, or search for a single one by the ID
EXAMPLES
$ starwars planet
$ starwars planet --id="1"
$ starwars --filter="name=Sand"
See code: src/commands/planet.js
starwars specie
Get Species information
USAGE
$ starwars specie
OPTIONS
-t, --test Indicates that its a mocha call
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format
--filter=filter filter property by partial string matching, ex: name=foo
--id=id Search for an ID
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--sort=sort property to sort by (prepend '-' for descending)
DESCRIPTION
...
You can search for all Species in the API, or search for a single one by the ID
EXAMPLES
$ starwars specie
$ starwars specie --id="3"
$ starwars --filter="name=Wookie"
See code: src/commands/specie.js
starwars starship
Get Starships information
USAGE
$ starwars starship
OPTIONS
-t, --test Indicates that its a mocha call
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format
--filter=filter filter property by partial string matching, ex: name=foo
--id=id Search for an ID
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--sort=sort property to sort by (prepend '-' for descending)
DESCRIPTION
...
You can search for all Starships in the API, or search for a single one by the ID
EXAMPLES
$ starwars starship
$ starwars starship --id="9"
$ starwars --filter="name=Death"
See code: src/commands/starship.js
starwars vehicle
Get vehicles information
USAGE
$ starwars vehicle
OPTIONS
-t, --test Indicates that its a mocha call
-x, --extended show extra columns
--columns=columns only show provided columns (comma-separated)
--csv output is csv format
--filter=filter filter property by partial string matching, ex: name=foo
--id=id Search for an ID
--no-header hide table header from output
--no-truncate do not truncate output to fit screen
--sort=sort property to sort by (prepend '-' for descending)
DESCRIPTION
...
You can search for all vehicles in the API, or search for a single one by the ID
EXAMPLES
$ starwars vehicle
$ starwars vehicle --id="4"
$ starwars --filter="name=Sand"
See code: src/commands/vehicle.js