{"id":16552631,"url":"https://github.com/postmodern/ruby-cli-boilerplate","last_synced_at":"2025-03-21T10:32:13.125Z","repository":{"id":64683838,"uuid":"572133095","full_name":"postmodern/ruby-cli-boilerplate","owner":"postmodern","description":"Zero-dependency Ruby CLI boilerplate code","archived":false,"fork":false,"pushed_at":"2022-11-29T20:19:45.000Z","size":6,"stargazers_count":59,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-18T00:37:29.386Z","etag":null,"topics":["boilerplate","boilerplate-code","cli","example-code","ruby"],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/postmodern.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-11-29T16:12:49.000Z","updated_at":"2025-01-25T12:05:43.000Z","dependencies_parsed_at":"2022-12-14T10:59:38.733Z","dependency_job_id":null,"html_url":"https://github.com/postmodern/ruby-cli-boilerplate","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fruby-cli-boilerplate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fruby-cli-boilerplate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fruby-cli-boilerplate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmodern%2Fruby-cli-boilerplate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmodern","download_url":"https://codeload.github.com/postmodern/ruby-cli-boilerplate/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244778006,"owners_count":20508830,"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":["boilerplate","boilerplate-code","cli","example-code","ruby"],"created_at":"2024-10-11T19:45:34.283Z","updated_at":"2025-03-21T10:32:12.821Z","avatar_url":"https://github.com/postmodern.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ruby-cli-boilerplate\n\nThis repository contains a boilerplate Ruby CLI class that can be used to\nimplement a basic zero-dependency CLI for other Ruby libraries.\n\n## Features\n\n* Zero-dependencies, making it ideal for adding a CLI to small libraries.\n* Correctly handles `Ctrl^C` and broken pipe exceptions.\n* Catches any other exceptions and prints a bug report.\n* Defines the CLI as a class, making it easy to test.\n* Comes with boilerplate RSpec tests.\n\n## Other CLI libraries\n\nIf you want to build a CLI for a large Ruby app or framework, and\ndon't mind adding an extra dependency for a CLI library/framework, I recommend\nthe following Ruby CLI libraries:\n\n* [cmdparse](https://cmdparse.gettalong.org/)\n* [dry-cli](https://dry-rb.org/gems/dry-cli/)\n* [command_kit](https://github.com/postmodern/command_kit.rb#readme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmodern%2Fruby-cli-boilerplate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmodern%2Fruby-cli-boilerplate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmodern%2Fruby-cli-boilerplate/lists"}