pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/rodolphocouto/swapi-cli

ink crossorigen="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-8522af645b000615.css" /> GitHub - rodolphocouto/swapi-cli: A simple CLI written in Kotlin/Native to retrieve resources from The Star Wars API · GitHub
Skip to content

rodolphocouto/swapi-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

swapi-cli

A simple CLI written in Kotlin/Native to retrieve resources from The Star Wars API

Build

Prerequisites:

  • Java >= 8
  • cURL
  • ncurses5-compat-libs
./gradlew clean build

The binary executable swapi-cli.kexe will be generated in the dir build/bin/native/releaseExecutable.

Usage

The CLI expects the following command format:

./swapi-cli.kexe [resource] [operation] [param]
  • resource is the API resource to retrieve (people, films, starships, vehicles, species and planets)
  • operation is the operation to retrieve the resource (count, list, search and get)
  • param is only required for search and get operations

Examples

People:

./swapi-cli.kexe people count
./swapi-cli.kexe people list
./swapi-cli.kexe people search Luke
./swapi-cli.kexe people get 1

Films:

./swapi-cli.kexe films count
./swapi-cli.kexe films list
./swapi-cli.kexe films search Hope
./swapi-cli.kexe films get 1

Starships:

./swapi-cli.kexe starships count
./swapi-cli.kexe starships list
./swapi-cli.kexe starships search Star
./swapi-cli.kexe starships get 1

Vehicles:

./swapi-cli.kexe vehicles count
./swapi-cli.kexe vehicles list
./swapi-cli.kexe vehicles search Crawler
./swapi-cli.kexe vehicles get 1

Species:

./swapi-cli.kexe species count
./swapi-cli.kexe species list
./swapi-cli.kexe species search Rod
./swapi-cli.kexe species get 1

Planets:

./swapi-cli.kexe planets count
./swapi-cli.kexe planets list
./swapi-cli.kexe planets search Yavin
./swapi-cli.kexe planets get 1

About

A simple CLI written in Kotlin/Native to retrieve resources from The Star Wars API

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy