{"id":20621066,"url":"https://github.com/mmcquillan/protocli","last_synced_at":"2025-09-26T14:31:34.570Z","repository":{"id":64303789,"uuid":"188505749","full_name":"mmcquillan/protocli","owner":"mmcquillan","description":"Easily prototype your CLI with protocli","archived":false,"fork":false,"pushed_at":"2020-02-20T18:58:12.000Z","size":19,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-16T12:16:29.966Z","etag":null,"topics":["cli","go","golang","prototyping"],"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/mmcquillan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-25T01:15:16.000Z","updated_at":"2024-07-30T14:26:15.000Z","dependencies_parsed_at":"2023-01-15T10:00:53.707Z","dependency_job_id":null,"html_url":"https://github.com/mmcquillan/protocli","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmcquillan%2Fprotocli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmcquillan%2Fprotocli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmcquillan%2Fprotocli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mmcquillan%2Fprotocli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mmcquillan","download_url":"https://codeload.github.com/mmcquillan/protocli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234315798,"owners_count":18812945,"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","go","golang","prototyping"],"created_at":"2024-11-16T12:16:32.205Z","updated_at":"2025-09-26T14:31:34.182Z","avatar_url":"https://github.com/mmcquillan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# protocli\n\nThis is a CLI prototyping tool using the [Matcher Format](https://github.com/mmcquillan/matcher) with response variable substitution.\n\n\n## Install\n\nOn the mac, you can install via brew as:\n\n`brew install mmcquillan/tools/protocli`\n\nLaunch by passing in a config file:\n\n`protocli \u003cconfig\u003e`\n\n\n## Commands\n\nThe only native command inside protocli is `?` which lists all possible command matches.\n\n\n## Config\n\nThe configuration is a YAML based file. Examples can be found [here](examples).\n\n```\n---\nprompt: \"\u003e \"\ncommands:\n-\n  command: \"do version\"\n  response: \"0.2.0\"\n-\n  command: \"do plan \u003cfile\u003e\"\n  responses:\n  -\n    response: \"Planning ${file}...\"\n  -\n    response: \"Complete\"\n    delay: 2\n-\n  command: \"do apply \u003cfile\u003e\"\n  responses:\n  -\n    response: \"Applying ${file}...\"\n  -\n    response: \"Error: applying ${file}\"\n    color: \"red\"\n    delay: 3\n-\n  command: \"do plan [...]\"\n  response: \"do plan \u003cfile\u003e\"\n-\n  command: \"do apply [...]\"\n  response: \"do apply \u003cfile\u003e\"\n-\n  command: \"do [...]\"\n  response: \"the do app\\n\n  do version\\n\n  do plan \u003cfile\u003e\\n\n  do apply \u003cfile\u003e\"\n```\n\n### prompt\n- Description: A prompt to show in the protocli interaction\n- Default: `\u003e `\n- Type: string\n\n### default\n- Description: A default response when no command is matched\n- Default: none\n- Type: string\n\n### commands\n- Description: A list of commands to respond to\n- Default: none\n- Type: list\n\n### command\n- Description: A command to respond to, using the [Matcher Format](https://github.com/mmcquillan/matcher)\n- Default: none\n- Type: string\n\n### response\n- Description: A response to show when the command is written (you can also list responses)\n- Default: none\n- Type: string\n\n### color\n- Description: Color to print the response in (red | green | yellow | blue | magenta | cyan | white)\n- Default: white\n- Type: string\n\n### delay\n- Description: Number of seconds to delay before showing response\n- Default: 0\n- Type: int\n\n\n## Releases\n\nv0.2.0\n- Added custom prompts\n- Added proper exit handling\n- Added config command line parameter\n- Added output color\n- Added dynamic config reload\n- Updated matcher library for short flags\n- Added delay option to the response\n- Added default response for no match\n\nv0.1.0\n- Initial Release\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmcquillan%2Fprotocli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmmcquillan%2Fprotocli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmmcquillan%2Fprotocli/lists"}