{"id":18351344,"url":"https://github.com/jlengrand/swacli","last_synced_at":"2025-04-06T11:32:32.993Z","repository":{"id":56262138,"uuid":"305132857","full_name":"jlengrand/swacli","owner":"jlengrand","description":"A simple Star Wars CLI tool built with picocli","archived":false,"fork":false,"pushed_at":"2024-05-23T07:42:55.000Z","size":18524,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T10:54:30.056Z","etag":null,"topics":["cli","hacktoberfest","hacktoberfest-accepted","hacktoberfest2020","java","kotlin","picocli","star-wars","star-wars-cli"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jlengrand.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-18T15:26:47.000Z","updated_at":"2024-12-01T10:56:03.000Z","dependencies_parsed_at":"2024-05-22T22:46:03.564Z","dependency_job_id":null,"html_url":"https://github.com/jlengrand/swacli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengrand%2Fswacli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengrand%2Fswacli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengrand%2Fswacli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jlengrand%2Fswacli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jlengrand","download_url":"https://codeload.github.com/jlengrand/swacli/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247478145,"owners_count":20945257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","hacktoberfest","hacktoberfest-accepted","hacktoberfest2020","java","kotlin","picocli","star-wars","star-wars-cli"],"created_at":"2024-11-05T21:30:25.800Z","updated_at":"2025-04-06T11:32:32.632Z","avatar_url":"https://github.com/jlengrand.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SwaCLI : A simple Star Wars CLI tool \n\nCreated using :\n\n* [Kotlin](https://kotlinlang.org/)\n* [PicoCLI](https://picocli.info/)\n* [SWAPI](https://swapi.dev/documentation)\n\nThis repository contains several small CLIs that aim at demonstrating the various capabilities of [picoCLI](https://picocli.info/).\n\nYou can find : \n\n* [SwaCLIBasic](src/main/kotlin/nl/lengrand/swacli/SwaCLIBasic.kt) Not doing anything but showing how picoCLI comes with batteries included\n* [SwaCLIOptions](src/main/kotlin/nl/lengrand/swacli/SwaCLIOptions.kt) A small demonstration on how to use (mutually exclusive) options and arguments\n* [SwaCLISubCommands](src/main/kotlin/nl/lengrand/swacli/SwaCLISubCommands.kt) A small demonstration on how to use subcommands \n* [SwaCLIPaginate](src/main/kotlin/nl/lengrand/swacli/SwaCLIPaginate.kt) A small demonstration on how to use subcommands and paginate the results. Default command in the sw compilable\n* [SwaCLIProgrammatic](src/main/kotlin/nl/lengrand/swacli/SwaCLIProgrammatic.kt) An example that uses the programmatic API instead of the annotation system.\n* [SwaCLISubCommandsTest](src/test/kotlin/nl/lengrand/swacli/SwaCLISubCommandsTest.kt) An example on how to test commandline configurations \n\n\nAll examples are in Kotlin and provide the same rough capabilities (get some facts about characters or planets in Star Wars)\n\n## Compiling / Running \n\n```\n$  ./gradlew customFatJar\n$ java -cp build/libs/all-in-one-jar-1.0-SNAPSHOT.jar nl.lengrand.swacli.SwaCLIPaginate\n```\n\nor if you're on Mac give a shot to the latest [release](https://github.com/jlengrand/swacli/releases).\n\n## Creating the native image\n\n[You'll need to have GraalVM and the native image extension setup on your system :)](https://www.graalvm.org/reference-manual/native-image/)\n\n```\n$ cd build/libs;native-image --static -jar all-in-one-jar-1.0-SNAPSHOT.jar sw --enable-http --enable-https\n# remove static if you're on Mac :)\n```\n\n##  Why\n\nThis is an example CLI that I created as illustration for my [JFall 2020 talk](https://jfall.nl/sessions/an-introduction-to-creating-cli-applications-using-picocli/)\n\nYou can check out the slides [here](https://github.com/jlengrand/picocli-jfall-bitesize-2020). \n\n## Source\n\n* [The repository can be found here](https://github.com/jlengrand/swacli)\n\n## Author \n\n* [@jlengrand](https://twitter.com/jlengrand)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlengrand%2Fswacli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjlengrand%2Fswacli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjlengrand%2Fswacli/lists"}