{"id":18276643,"url":"https://github.com/marcelofpfelix/boa","last_synced_at":"2026-04-12T17:56:13.073Z","repository":{"id":239376880,"uuid":"772296964","full_name":"marcelofpfelix/boa","owner":"marcelofpfelix","description":"An cli argument parser, using spf13/cobra, for shell scripts.","archived":false,"fork":false,"pushed_at":"2024-06-26T15:30:10.000Z","size":3852,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T22:41:49.951Z","etag":null,"topics":["argument-parser","bash","cli","shell","terminal"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcelofpfelix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2024-03-14T23:06:46.000Z","updated_at":"2024-06-26T15:30:11.000Z","dependencies_parsed_at":"2024-05-17T23:25:48.289Z","dependency_job_id":"12a668dc-bdae-4150-93e5-2aa2c6ded079","html_url":"https://github.com/marcelofpfelix/boa","commit_stats":null,"previous_names":["marcelofpfelix/boa"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelofpfelix%2Fboa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelofpfelix%2Fboa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelofpfelix%2Fboa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcelofpfelix%2Fboa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcelofpfelix","download_url":"https://codeload.github.com/marcelofpfelix/boa/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247975807,"owners_count":21026944,"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":["argument-parser","bash","cli","shell","terminal"],"created_at":"2024-11-05T12:16:40.173Z","updated_at":"2026-04-12T17:56:08.000Z","avatar_url":"https://github.com/marcelofpfelix.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# boa\n\nAn cli argument parser, using [spf13/cobra](https://github.com/spf13/cobra), for shell scripts.\n\n\n### Example\n\n![boa](docs/example.gif)\n\nSimilar to [charmbracelet/gum](https://github.com/charmbracelet/gum), this binary file takes the use of go parsing and validation of cli arguments and makes it available for shell scripts.\n\nAs seen in the [example](docs/example.gif), the cli can be defined in a bash script like so:\n\n```sh\ncli=\"\"\"\nuse: boash\nshort: a boa example\nlong: |\n  This is an cli example from sh\n  of how to use boa in a shell script\nflags:\n  - use: carbon\n    short: It has symbol C and atomic number 6.\n    alias: c\n    type: string\n  - use: nitrogen\n    short: It has symbol N and atomic number 7.\n    alias: n\n    type: int\n  - use: oxygen\n    short: It has symbol O and atomic number 8.\n    alias: o\n\"\"\"\n\n# parse the cli arguments\nresult=$(echo \"$cli\" | boa $@)\n```\n\nThe `boa` binary will parse the cli arguments and return a string with the values of the flags.\n\n\n### Installation\n\nWith **go** installed, run the following command:\n\n```sh\ngo install github.com/marcelofpfelix/boa@latest\n```\n\nIt's a statically linked Go binary, so you can also **download** it directly:\n\n```sh\ncurl -sL https://github.com/marcelofpfelix/boa/releases/latest/download/boa_Linux_x86_64.tar.gz | tar xvz\n\nsudo mv boa /usr/local/bin\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelofpfelix%2Fboa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelofpfelix%2Fboa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelofpfelix%2Fboa/lists"}