{"id":23353572,"url":"https://github.com/omgreenfield/ruby-cli-template","last_synced_at":"2025-04-07T19:19:49.901Z","repository":{"id":266149973,"uuid":"851913877","full_name":"omgreenfield/ruby-cli-template","owner":"omgreenfield","description":"A simple Ruby CLI template using Thor and other useful tools","archived":false,"fork":false,"pushed_at":"2025-03-11T01:31:20.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-11T02:27:42.252Z","etag":null,"topics":["cli","ruby","thor"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/omgreenfield.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-03T22:47:58.000Z","updated_at":"2025-03-11T01:31:23.000Z","dependencies_parsed_at":"2025-03-11T02:35:19.867Z","dependency_job_id":null,"html_url":"https://github.com/omgreenfield/ruby-cli-template","commit_stats":null,"previous_names":["omgreenfield/ruby-cli-template"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fruby-cli-template","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fruby-cli-template/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fruby-cli-template/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fruby-cli-template/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omgreenfield","download_url":"https://codeload.github.com/omgreenfield/ruby-cli-template/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247713263,"owners_count":20983683,"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","ruby","thor"],"created_at":"2024-12-21T09:14:23.988Z","updated_at":"2025-04-07T19:19:49.894Z","avatar_url":"https://github.com/omgreenfield.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"This template is for building a Ruby CLI using [Thor](https://github.com/rails/thor) and some other goodies:\n\n- An extension (`omg-thor-ext`) to make Thor behave more like other CLIs (see [Matt Brictson's blog about it](https://mattbrictson.com/blog/fixing-thor-cli-behavior))\n- Helper scripts\n  - `bin/install`: installs dependencies and copies `.env.example` to `.env`\n  - `bin/console`: runs a `pry` console with everything in `src` loaded\n  - `bin/cli`: loads up the CLI\n\n## (1) Create new repo from template\n\n```sh\ngh repo create your-name/your-new-cli-repo --public --template=omgreenfield/ruby-cli-template\n```\n\n## (2) Preparation\n\nGo through `Gemfile` and uncomment gems you want to include\n\n## (3) Installation\n\n```sh\nbin/install\n```\n\n## (3) Usage\n\n```sh\nbin/console\nbin/cli help\n```\n\n### (3.1) Example\n\n```sh\n# Just the 1 required argument\nbin/cli example \"required arg\"\n\n# The 1 required argument and 1 optional argument\nbin/cli example \"required arg\" \"optional arg\"\n\n# The 1 required argument, 1 optional argument, and some named args\nbin/cli example \"required arg\" \"optional arg\" -s \"named string\" -n 123 -b\n```\n\n## (4) Testing\n\n```sh\nrspec\n# or\nbundle exec rspec\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgreenfield%2Fruby-cli-template","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomgreenfield%2Fruby-cli-template","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgreenfield%2Fruby-cli-template/lists"}