{"id":16925046,"url":"https://github.com/hiroppy/cav","last_synced_at":"2026-05-15T23:38:58.065Z","repository":{"id":57195090,"uuid":"87714315","full_name":"hiroppy/cav","owner":"hiroppy","description":"A supporter for making your CLI.","archived":false,"fork":false,"pushed_at":"2020-08-17T03:11:09.000Z","size":15,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T22:24:03.099Z","etag":null,"topics":["cli"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/hiroppy.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}},"created_at":"2017-04-09T14:27:25.000Z","updated_at":"2023-02-15T22:11:27.000Z","dependencies_parsed_at":"2022-09-16T05:21:32.032Z","dependency_job_id":null,"html_url":"https://github.com/hiroppy/cav","commit_stats":null,"previous_names":["abouthiroppy/cav"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/hiroppy/cav","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fcav","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fcav/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fcav/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fcav/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hiroppy","download_url":"https://codeload.github.com/hiroppy/cav/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hiroppy%2Fcav/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33083773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T20:25:35.270Z","status":"ssl_error","status_checked_at":"2026-05-15T20:25:34.732Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli"],"created_at":"2024-10-13T20:08:41.177Z","updated_at":"2026-05-15T23:38:58.004Z","avatar_url":"https://github.com/hiroppy.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cav\n[![npm version](https://badge.fury.io/js/cav.svg)](https://badge.fury.io/js/cav)\n\nA supporter for making your CLI.\n\n## Install\n```sh\n$ npm i -S cav\n```\n\n## Examples\n```js\n#!/usr/bin/env node\n\n// sample-cli\n\nconst Cav = require('cav');\nconst packageJson = require('./package.json');\n\nconst commands = {\n  'deploy \u003cto\u003e \u003cenv\u003e'            : 'Deploy to ec2.',\n  'migrate \u003cfrom\u003e \u003cto\u003e \u003cversion\u003e': 'Migrate data.',\n  '-f'                           : '✊',\n  '-c, --current-state'          : 'Show Current State.'\n};\n\nconst cav = new Cav(commands, packageJson);\n\ncav.start((args) =\u003e {\n  console.log(args)\n});\n```\n\n## Parse arguments\n```sh\n$ sample-cli deploy japan prod -f -c ok\n```\n```js\ncav.start((args) =\u003e {\n  console.log(JSON.stringify(args, null, 2));\n  //  {\n  //    \"commands\": {\n  //      \"deploy\": {\n  //        \"to\": \"japan\",\n  //        \"env\": \"prod\"\n  //      }\n  //    },\n  //    \"options\": {\n  //      \"f\": true,\n  //      \"c\": \"ok\"\n  //    }\n  //  }\n});\n```\n\n## help\n```\nVersion:    1.0.0\n\nUsage:      sample-cli \u003ccommands\u003e \u003coptions\u003e\n\nCommands:\n            deploy \u003cto\u003e \u003cenv\u003e                 Deploy to ec2.\n            migrate \u003cfrom\u003e \u003cto\u003e \u003cversion\u003e     Migrate data.\nOptions:\n            -v, --version                     Display version.\n            -h, --help                        Display help.\n            -f                                ✊\n            -c, --current-state               Show Current State.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fcav","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhiroppy%2Fcav","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhiroppy%2Fcav/lists"}