Coder Social home page Coder Social logo

swacli's Introduction

SwaCLI : A simple Star Wars CLI tool

Created using :

This repository contains several small CLIs that aim at demonstrating the various capabilities of picoCLI.

You can find :

  • SwaCLIBasic Not doing anything but showing how picoCLI comes with batteries included
  • SwaCLIOptions A small demonstration on how to use (mutually exclusive) options and arguments
  • SwaCLISubCommands A small demonstration on how to use subcommands
  • SwaCLIPaginate A small demonstration on how to use subcommands and paginate the results. Default command in the sw compilable
  • SwaCLIProgrammatic An example that uses the programmatic API instead of the annotation system.
  • SwaCLISubCommandsTest An example on how to test commandline configurations

All examples are in Kotlin and provide the same rough capabilities (get some facts about characters or planets in Star Wars)

Compiling / Running

$  ./gradlew customFatJar
$ java -cp build/libs/all-in-one-jar-1.0-SNAPSHOT.jar nl.lengrand.swacli.SwaCLIPaginate

or if you're on Mac give a shot to the latest release.

Creating the native image

You'll need to have GraalVM and the native image extension setup on your system :)

$ cd build/libs;native-image --static -jar all-in-one-jar-1.0-SNAPSHOT.jar sw --enable-http --enable-https
# remove static if you're on Mac :)

Why

This is an example CLI that I created as illustration for my JFall 2020 talk

You can check out the slides here.

Source

Author

swacli's People

Contributors

jlengrand avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

balaagha

swacli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.