{"id":27796503,"url":"https://github.com/gcsboss/deno-eclipt","last_synced_at":"2025-07-10T11:10:51.312Z","repository":{"id":57675498,"uuid":"362932953","full_name":"GCSBOSS/deno-eclipt","owner":"GCSBOSS","description":"A flexible Deno library to create CLIs","archived":false,"fork":false,"pushed_at":"2021-11-11T17:12:25.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-30T20:59:01.536Z","etag":null,"topics":["cli","deno","library","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/GCSBOSS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2021-04-29T20:00:02.000Z","updated_at":"2021-11-11T17:09:36.000Z","dependencies_parsed_at":"2022-09-26T20:41:34.343Z","dependency_job_id":null,"html_url":"https://github.com/GCSBOSS/deno-eclipt","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GCSBOSS%2Fdeno-eclipt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GCSBOSS%2Fdeno-eclipt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GCSBOSS%2Fdeno-eclipt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GCSBOSS%2Fdeno-eclipt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GCSBOSS","download_url":"https://codeload.github.com/GCSBOSS/deno-eclipt/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251782739,"owners_count":21642980,"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","deno","library","typescript"],"created_at":"2025-04-30T20:59:04.232Z","updated_at":"2025-04-30T20:59:04.829Z","avatar_url":"https://github.com/GCSBOSS.png","language":"TypeScript","readme":"\n# [Eclipt](https://gitlab.com/GCSBOSS/deno-eclipt) for Deno\n\nA flexible library to create CLIs\n\n## Features\n- Regular options (`--foo bar`)\n- Boolean options (`--foobar`)\n- Key-value options (`--foo=bar`)\n- Short aliases (`-f`)\n- Array options (`--foo bar --foo baz`)\n- Grouped aliased flags (`-abc`)\n- Automatic `-h, --help` support\n- Expected arguments\n- Arbitrary depth of nested commands\n\n## Usage\n\n```ts\n\nimport { eclipt } from 'https://deno.land/x/eclipt@0.2.3/eclipt.ts';\n\neclipt('my-awesome-tool', {\n    description: 'My Awesome Tool can do anything you with', // Optional description\n    action: input =\u003e // optional action for the command\n        console.log('You have run: %s with following input', input.name, input),\n    args: [ 'MY_ARG_1', 'MY_ARG_2' ], // optional list of supported arguments\n    opts: {\n\n        // Any number of options\n        foo: { flag: true }, // A boolean option\n        bar: { value: 'value' }, // A regular key and the name for it's value\n        baz: { multi: true, value: 'value' }, // An array option that can appear multiple times\n        opt1: { value: 'value', alias: 'o' }, // Aliased option\n        opt2: { description: 'Does that' } // Optional description\n    },\n    commands: {\n        'command-name': { /* (description?, action?, args?, opts? commands?) */ }\n    }\n});\n\n```\n\n## TODO\n- unquote arguments and values\n- mark multi options some way in the help\n- validate against repeated aliases\n\n## Reporting Bugs\nIf you have found any problems with this module, please:\n\n1. [Open an issue](https://gitlab.com/GCSBOSS/deno-eclipt/issues/new).\n2. Describe what happened and how.\n3. Also in the issue text, reference the label `~bug`.\n\nWe will make sure to take a look when time allows us.\n\n## Proposing Features\nIf you wish to get that awesome feature or have some advice for us, please:\n1. [Open an issue](https://gitlab.com/GCSBOSS/deno-eclipt/issues/new).\n2. Describe your ideas.\n3. Also in the issue text, reference the label `~proposal`.\n\n## Contributing\nIf you have spotted any enhancements to be made and is willing to get your hands\ndirty about it, fork us and\n[submit your merge request](https://gitlab.com/GCSBOSS/deno-eclipt/merge_requests/new)\nso we can collaborate effectively.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcsboss%2Fdeno-eclipt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgcsboss%2Fdeno-eclipt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgcsboss%2Fdeno-eclipt/lists"}