{"id":18562426,"url":"https://github.com/born2snipe/cli-pi","last_synced_at":"2025-10-28T09:20:55.661Z","repository":{"id":57719606,"uuid":"48584630","full_name":"born2snipe/cli-pi","owner":"born2snipe","description":"A simple little framework for making Java CLI applications","archived":false,"fork":false,"pushed_at":"2018-06-08T10:42:24.000Z","size":67,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-17T12:45:34.403Z","etag":null,"topics":["argparse4j","cli","jansi","java","serviceloader"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/born2snipe.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-25T15:41:06.000Z","updated_at":"2023-02-14T20:14:20.000Z","dependencies_parsed_at":"2022-09-02T12:31:45.149Z","dependency_job_id":null,"html_url":"https://github.com/born2snipe/cli-pi","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fcli-pi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fcli-pi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fcli-pi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/born2snipe%2Fcli-pi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/born2snipe","download_url":"https://codeload.github.com/born2snipe/cli-pi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254388423,"owners_count":22063052,"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":["argparse4j","cli","jansi","java","serviceloader"],"created_at":"2024-11-06T22:09:33.881Z","updated_at":"2025-10-28T09:20:55.604Z","avatar_url":"https://github.com/born2snipe.png","language":"Java","readme":"# Cli-Pi\nBecause sometimes making a CLI can be a real pain in the a$$\n\n#### What does it do?\n - combine some libraries that work: [argparse4j][3], [jansi][4], [cli-progress][5]\n - easily make a CLI app that is extensible\n - remove some boilerplate code\n\n#### How does it work?\nThis library uses Java's [ServiceLoader][1] to gather up all the [CliCommand][2]s in the application's classpath.\nThis makes it really easy for anyone to add a new command they \"wish\" they had in your application.\n\n### How do I get started?\nI would suggest checking out the `example` module. This is an example of how to setup an application with maven.\n\n**Base requirements**\n - Make the `cli.pi.CliApp` your `Main-Class` in your `MANIFEST.MF` so your commands will be picked up and exceptions will be handled\n - Create file `app-info.properties` in the root directory of your application. This file expects to have one property `app.version`\n and this is used when a user wants to know the version of our application.\n - All your commands are expected to extend the class `CliCommand` and to have an entry of each command class\n    in the `META-INF/services/cli.pi.command.CliCommand` file. This can be auto-generated for you if you look in the **FAQ**.\n\n#### FAQ\n - Is there anyway to auto-generate the files that get put in `META-INF/services` for my `CliCommand`s ?\n    - I usually annotate my `CliCommand` implementations with the `@MetaInfServices` annotation provided in the `metainf-services` module.\n     This module contains an annotation processor that will generate the service file at compile time based on what `service` you declared in the annotation.\n     So you only need this module at compile time and not runtime.\n\n[1]: https://docs.oracle.com/javase/7/docs/api/java/util/ServiceLoader.html \"serviceloader\"\n[2]: https://github.com/born2snipe/cli-pi/blob/master/src/main/java/cli/pi/command/CliCommand.java \"cli-command\"\n[3]: http://argparse4j.sourceforge.net \"argparse4j\"\n[4]: https://github.com/fusesource/jansi \"jansi\"\n[5]: https://github.com/born2snipe/cli-progress \"cli-progress\"\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn2snipe%2Fcli-pi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fborn2snipe%2Fcli-pi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fborn2snipe%2Fcli-pi/lists"}