{"id":22202192,"url":"https://github.com/rumkin/cli-complete","last_synced_at":"2025-06-15T22:09:14.721Z","repository":{"id":34210650,"uuid":"38067922","full_name":"rumkin/cli-complete","owner":"rumkin","description":"Missing node.js/io.js bash completion tool","archived":false,"fork":false,"pushed_at":"2015-06-26T10:16:31.000Z","size":116,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-01T14:14:17.198Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rumkin.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-25T18:56:16.000Z","updated_at":"2015-07-30T09:02:04.000Z","dependencies_parsed_at":"2022-09-16T15:01:00.581Z","dependency_job_id":null,"html_url":"https://github.com/rumkin/cli-complete","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rumkin/cli-complete","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fcli-complete","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fcli-complete/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fcli-complete/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fcli-complete/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rumkin","download_url":"https://codeload.github.com/rumkin/cli-complete/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rumkin%2Fcli-complete/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260059330,"owners_count":22953049,"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":[],"created_at":"2024-12-02T16:12:42.304Z","updated_at":"2025-06-15T22:09:14.700Z","avatar_url":"https://github.com/rumkin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bash completion\n\nMissed cli completion tool for node.js. Just place `cli-complete.js` into home directory to enable bash completion\nfor your local application.\n\n# Install\n\nCompletion works only if installed globally because it writes file into `/etc/bash_completion.d/`.\n\n```bash\nnpm install cli-completion -g\n```\n\n# Usage\n\nCreate `cli-completion.js` inside your project's directory. Example:\n\n```javascript\nif (process.argv.length === 3) {\n    console.log(\"server generate dump\");\n}\n```\n\nType `node` or `iojs` first then script name and after that use `[TAB]`.\n\n```\n\u003e node app[TAB] # -\u003e app.js\n\u003e node app.js serv[TAB] # -\u003e server\n```\n\nOr using `cli-completion` helper:\n\n```javascript\nvar complete = require('cli-complete');\n\ncomplete({\n    server: ['start', 'stop', 'reload'],\n    generate: ['view', 'controller'],\n    dump: true,\n    restore: function(){\n        // Output complete value\n        console.log('today yesterday');\n    }\n})\n```\n\n# Note\n\nCurrently for unix systems only.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fcli-complete","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frumkin%2Fcli-complete","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frumkin%2Fcli-complete/lists"}