{"id":23875239,"url":"https://github.com/zoocityboy/promptly","last_synced_at":"2025-06-27T23:02:55.531Z","repository":{"id":270153659,"uuid":"909483095","full_name":"zoocityboy/promptly","owner":"zoocityboy","description":"Dart CLI interactive console","archived":false,"fork":false,"pushed_at":"2025-05-20T05:10:45.000Z","size":7341,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-20T06:23:14.711Z","etag":null,"topics":["cli","dartlang","interactive"],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/promptly/","language":"Dart","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/zoocityboy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2024-12-28T20:52:14.000Z","updated_at":"2025-05-20T05:10:49.000Z","dependencies_parsed_at":"2025-02-05T15:39:55.420Z","dependency_job_id":"f7cc21c8-870b-4da2-8189-197c7feae6f2","html_url":"https://github.com/zoocityboy/promptly","commit_stats":null,"previous_names":["zoocityboy/zoo_console","zoocityboy/promptly"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/zoocityboy/promptly","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoocityboy%2Fpromptly","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoocityboy%2Fpromptly/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoocityboy%2Fpromptly/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoocityboy%2Fpromptly/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoocityboy","download_url":"https://codeload.github.com/zoocityboy/promptly/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoocityboy%2Fpromptly/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262347470,"owners_count":23296893,"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","dartlang","interactive"],"created_at":"2025-01-03T18:19:11.288Z","updated_at":"2025-06-27T23:02:55.525Z","avatar_url":"https://github.com/zoocityboy.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"![promptly](https://raw.githubusercontent.com/zoocityboy/promptly/refs/heads/main/assets/promptly.png \"Resoure\")\n\nDeveloped by 🦏 [zoocityboy](https://zoocityboy.github.io/)\n\n[![Pub](https://img.shields.io/pub/v/promptly.svg?style=flat-square)](https://pub.dev/packages/promptly)\n[![pub points](https://img.shields.io/pub/points/mason_coder?style=flat-square\u0026color=2E8B57\u0026label=pub%20points)](https://pub.dev/packages/promptly/score)\n[![release](https://github.com/zoocityboy/promptly/actions/workflows/release.yaml/badge.svg?style=flat-square)](https://github.com/zoocityboy/promptly/actions/workflows/release.yaml)\n[![Coverage](https://raw.githubusercontent.com/zoocityboy/promptly/main/coverage_badge.svg)](https://github.com/zoocityboy/promptly/actions/workflows/pull-request.yml)\n[![License: MIT](https://img.shields.io/badge/license-MIT-purple.svg?style=flat-square)](https://opensource.org/licenses/MIT)\n\n\n![Dart](https://img.shields.io/badge/dart-%230175C2.svg?style=flat-square\u0026logo=dart\u0026logoColor=white)\n\n\u003e [!IMPORTANT]\n\u003e This project is currently in pre-production. Breaking changes may occur. Use with caution.\n\n[Documentation](https://zoocityboy.github.io/promptly/)\n\n## Features\n\n- [x] Argument parser\n- [x] CommandRunner, Command definition\n- [x] Command flow [components](#components)\n- [x] Process helpers (executors) \n- [x] Tracing, Logging\n- [x] Themable \n\n### Command Runner\n\nA simple way to write command-line applications in Dart with styling and command loading capabilities.\n\n```dart\nclass MyRunner extends CommandRunner {\n  MyRunner(super.executableName, super.description, {super.version, super.theme, super.logLevel, super.printer}) {\n    addCommand(TestCommand());\n    addCommand(SecondCommand());\n    addCommand(ThirdCommand());\n    addCommand(ThirdoCommand());\n    addCommand(ThirmoCommand());\n  }\n}\nFuture\u003cvoid\u003e main(List\u003cString\u003e args) =\u003e MyRunner(\n    'promptly',\n    'Runner test',\n    version: '0.0.1',\n    theme: Theme.defaultTheme,\n    // printer: defaultPrinter,\n  ).safeRun(args);\n```\n\n\n\n### Components\n\nA collection of customizable interactive command-line components.\n\nThe library contains a bunch of command-line components that are easy to use and customizable, including text and password inputs, radio or select inputs, checkbox or multiple select inputs, spinners, and progress bars. Examples for all the available components can be found in the `example` folder, and the [API Documentation](#api-documentation) section will cover all about them.\n\nAs an overview, you can make a `Select` component like this.\n\n```dart\nfinal languages = ['Rust', 'Dart', 'TypeScript'];\nfinal selection = selectOne\u003cString\u003e(\n  'Your favorite programming language',\n  options: languages,\n\n);\n\nprint('${languages[selection]}');\n```\n\nIt will result in something like this,\n\n![Demo](https://raw.githubusercontent.com/zoocityboy/promptly/refs/heads/main/assets/demo.gif)\n\n\u003cbr\u003e\n\n## Installation\n\nInstall the latest version of Promptly as a dependency as shown in [pub.dev](https://pub.dev/packages/promptly).\n\n\u003cbr\u003e\n\n## API Documentation\n\n### Components\n\nThese are the snippets of components with their properties and arguments. Check the [pub documentation](https://pub.dev/documentation/promptly/latest/) to get to know more about them in detail.\n\n\u003cbr\u003e\n## License\n\nThis project is licensed under the [MIT License](LICENSE) as provided in the original repository.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoocityboy%2Fpromptly","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoocityboy%2Fpromptly","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoocityboy%2Fpromptly/lists"}