{"id":37026870,"url":"https://github.com/brianm/git-like-cli","last_synced_at":"2026-01-14T03:10:35.657Z","repository":{"id":2531793,"uuid":"3508505","full_name":"brianm/git-like-cli","owner":"brianm","description":"Git-like-cli is a Java annotation-based framework for parsing Git like command line structures.","archived":false,"fork":true,"pushed_at":"2012-03-22T22:42:52.000Z","size":226,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-04T00:23:38.942Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"dain/git-like-cli","license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brianm.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":"2012-02-21T21:41:02.000Z","updated_at":"2013-01-07T23:07:00.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/brianm/git-like-cli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/brianm/git-like-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fgit-like-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fgit-like-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fgit-like-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fgit-like-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brianm","download_url":"https://codeload.github.com/brianm/git-like-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brianm%2Fgit-like-cli/sbom","scorecard":{"id":253280,"data":{"date":"2025-08-11","repo":{"name":"github.com/brianm/git-like-cli","commit":"7d4b2d138a7294e5ec185176e19dbe5ad20c916b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.8,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: license.txt:0","Info: FSF or OSI recognized license: Apache License 2.0: license.txt:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":8,"reason":"2 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-5mg8-w23w-74h3","Warn: Project is vulnerable to: GHSA-7g45-4rm6-3mm3"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-17T08:59:26.978Z","repository_id":2531793,"created_at":"2025-08-17T08:59:26.978Z","updated_at":"2025-08-17T08:59:26.978Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408814,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-01-14T03:10:34.909Z","updated_at":"2026-01-14T03:10:35.653Z","avatar_url":"https://github.com/brianm.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"Git-like-cli\n============\n\nGit-like-cli is a Java annotation-based framework for parsing Git like command line structures.\n\nHere is a quick example:\n\n```java\npublic class Git\n{\n    public static void main(String[] args)\n    {\n        CliBuilder\u003cRunnable\u003e builder = buildCli(\"git\", Runnable.class)\n                .withDescription(\"the stupid content tracker\")\n                .withDefaultCommand(Help.class)\n                .withCommands(Help.class,\n                        Add.class);\n\n        builder.withGroup(\"remote\")\n                .withDescription(\"Manage set of tracked repositories\")\n                .withDefaultCommand(RemoteShow.class)\n                .withCommands(RemoteShow.class,\n                        RemoteAdd.class);\n\n        GitLikeCli\u003cRunnable\u003e gitParser = builder.build();\n\n        gitParser.parse(args).run();\n    }\n\n    public static class GitCommand implements Runnable\n    {\n        @Option(type = GLOBAL, name = \"-v\", description = \"Verbose mode\")\n        public boolean verbose;\n\n        public void run()\n        {\n            System.out.println(getClass().getSimpleName());\n        }\n    }\n\n    @Command(name = \"add\", description = \"Add file contents to the index\")\n    public static class Add extends GitCommand\n    {\n        @Arguments(description = \"Patterns of files to be added\")\n        public List\u003cString\u003e patterns;\n\n        @Option(name = \"-i\", description = \"Add modified contents interactively.\")\n        public boolean interactive;\n    }\n\n    @Command(name = \"show\", description = \"Gives some information about the remote \u003cname\u003e\")\n    public static class RemoteShow extends GitCommand\n    {\n        @Option(name = \"-n\", description = \"Do not query remote heads\")\n        public boolean noQuery;\n\n        @Arguments(description = \"Remote to show\")\n        public String remote;\n    }\n\n    @Command(name = \"add\", description = \"Adds a remote\")\n    public static class RemoteAdd extends GitCommand\n    {\n        @Option(name = \"-t\", description = \"Track only a specific branch\")\n        public String branch;\n\n        @Arguments(description = \"Remote repository to add\")\n        public List\u003cString\u003e remote;\n    }\n}\n```\n\nAssuming you have packaged this as an executable program named 'git', you would be able to execute the following commands:\n\n```shell\n$ git add -p file\n\n$ git remote add origin git@github.com:dain/git-like-cli.git\n\n$ git -v remote show origin\n```\n\n\n\nHelp System\n===========\n\nGit-like-cli contains a fully automated help system, which generates man-page-like documentation driven by the Java\nannotations.\n\nAs you may have noticed in the code above, we added Help.class to the cli.  This command is provided by Git-like-cli and works as follows:\n\n```shell\n$ git help\nusage: git [-v] \u003ccommand\u003e [\u003cargs\u003e]\n\nThe most commonly used git commands are:\n    add       Add file contents to the index\n    help      Display help information\n    remote    Manage set of tracked repositories\n\nSee 'git help \u003ccommand\u003e' for more information on a specific command.\n\n\n$ git help git\nNAME\n        git - the stupid content tracker\n\nSYNOPSIS\n        git [-v] \u003ccommand\u003e [\u003cargs\u003e]\n\nOPTIONS\n        -v\n            Verbose mode\n\nCOMMANDS\n        help\n            Display help information\n\n        add\n            Add file contents to the index\n\n        remote show\n            Gives some information about the remote \u003cname\u003e\n\n        remote add\n            Adds a remote\n\n\n\n$ git help add\nNAME\n        git add - Add file contents to the index\n\nSYNOPSIS\n        git [-v] add [-i] [--] [\u003cpatterns\u003e...]\n\nOPTIONS\n        -i\n            Add modified contents interactively.\n\n        -v\n            Verbose mode\n\n        --\n            This option can be used to separate command-line options from the\n            list of argument, (useful when arguments might be mistaken for\n            command-line options\n\n        \u003cpatterns\u003e\n            Patterns of files to be added\n\n\n\n$ git help remote\nNAME\n        git remote - Manage set of tracked repositories\n\nSYNOPSIS\n        git [-v] remote\n        git [-v] remote add [-t \u003cbranch\u003e]\n        git [-v] remote show [-n]\n\nOPTIONS\n        -v\n            Verbose mode\n\nCOMMANDS\n        With no arguments, Gives some information about the remote \u003cname\u003e\n\n        show\n            Gives some information about the remote \u003cname\u003e\n\n            With -n option, Do not query remote heads\n\n        add\n            Adds a remote\n\n            With -t option, Track only a specific branch\n\n\n\n$ git help remote show\nNAME\n        git remote show - Gives some information about the remote \u003cname\u003e\n\nSYNOPSIS\n        git [-v] remote show [-n] [--] [\u003cremote\u003e]\n\nOPTIONS\n        -n\n            Do not query remote heads\n\n        -v\n            Verbose mode\n\n        --\n            This option can be used to separate command-line options from the\n            list of argument, (useful when arguments might be mistaken for\n            command-line options\n\n        \u003cremote\u003e\n            Remote to show\n```\n\nWe have also, add Help.class as the default command for git, so if you execute git without any arguments, you will see the following:\n\n```shell\n$ git help\nusage: git [-v] \u003ccommand\u003e [\u003cargs\u003e]\n\nThe most commonly used git commands are:\n    add       Add file contents to the index\n    help      Display help information\n    remote    Manage set of tracked repositories\n\nSee 'git help \u003ccommand\u003e' for more information on a specific command.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianm%2Fgit-like-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrianm%2Fgit-like-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrianm%2Fgit-like-cli/lists"}