{"id":27101402,"url":"https://github.com/pyrestudios/bosun","last_synced_at":"2025-04-06T14:36:47.932Z","repository":{"id":45087280,"uuid":"438763959","full_name":"PyreStudios/bosun","owner":"PyreStudios","description":"Bosun is a library for building organized command line applications in Dart.","archived":false,"fork":false,"pushed_at":"2022-06-08T23:38:50.000Z","size":47,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-05-01T11:28:33.596Z","etag":null,"topics":["cli","dart","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PyreStudios.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-12-15T20:29:17.000Z","updated_at":"2024-05-01T11:28:33.597Z","dependencies_parsed_at":"2022-09-02T22:40:50.425Z","dependency_job_id":null,"html_url":"https://github.com/PyreStudios/bosun","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyreStudios%2Fbosun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyreStudios%2Fbosun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyreStudios%2Fbosun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyreStudios%2Fbosun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PyreStudios","download_url":"https://codeload.github.com/PyreStudios/bosun/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247497233,"owners_count":20948382,"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","dart","hacktoberfest"],"created_at":"2025-04-06T14:36:47.394Z","updated_at":"2025-04-06T14:36:47.894Z","avatar_url":"https://github.com/PyreStudios.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bosun\n\n## A library for parsing CLI input and structuring CLI commands\n\n[![pub version](https://img.shields.io/pub/v/bosun)](https://img.shields.io/pub/v/bosun)\n[![codecov](https://codecov.io/gh/PyreStudios/bosun/branch/main/graph/badge.svg?token=CAK5MR60ZI)](https://codecov.io/gh/PyreStudios/bosun)\n[![points](https://img.shields.io/pub/points/bosun)](https://img.shields.io/pub/points/bosun)\n[![likes](https://img.shields.io/pub/likes/bosun)](https://img.shields.io/pub/likes/bosun)\n\n\n## Features\n\n- Structure CLI commands in a nice, uniform fashion.\n- Parse args and flag information from a command tree.\n- Auto generate meaningful output when nonsensical commands are ran.\n- [EVENTUALLY] meaningful feature suggestions from **you**!\n\n## Getting started\n\nAdd Bosun to your dependencies. See example (or usage below) for more information. Additional information coming soon.\n\n## Usage\n\nBosun is simple to use! You'll leverage Bosun's Command class to structure your own commands. Additionally, you'll new up **one** BosunCommand and pass arguments to it. This is usually done directly in your main method, but doesnt have to be.\n\n```dart\nimport 'package:bosun/bosun.dart';\n\nclass AppCmd extends Command {\n  AppCmd() : super(command: 'app', description: 'run as an app shell');\n\n  @override\n  void run(List\u003cString\u003e args, Map\u003cString, dynamic\u003e flags) {\n    print(\"in the app command callback\");\n  }\n}\n\nclass RunCmd extends Command {\n  RunCmd()\n      : super(\n            command: 'run',\n            description: 'Run a command in a shell',\n            subcommands: [AppCmd()]);\n\n  @override\n  void run(List\u003cString\u003e args, Map\u003cString, dynamic\u003e flags) {\n    print(\"in the run command callback\");\n  }\n}\n\nvoid main(List\u003cString\u003e args) {\n  execute(BosunCommand('donker', subcommands: [RunCmd()]), args);\n}\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrestudios%2Fbosun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyrestudios%2Fbosun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyrestudios%2Fbosun/lists"}