{"id":23353578,"url":"https://github.com/omgreenfield/omg-thor-ext","last_synced_at":"2025-04-07T19:19:49.705Z","repository":{"id":252427511,"uuid":"840439840","full_name":"omgreenfield/omg-thor-ext","owner":"omgreenfield","description":"A gemified version of Matt Brictson's extension to allow Thor CLIs to behave in ways we've come to expect from other CLIs","archived":false,"fork":false,"pushed_at":"2024-09-12T22:06:19.000Z","size":4,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-22T21:48:48.750Z","etag":null,"topics":["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-08-09T17:56:38.000Z","updated_at":"2024-10-23T17:36:10.000Z","dependencies_parsed_at":"2024-08-09T18:28:43.751Z","dependency_job_id":"ead1b885-e612-46db-bb1f-1193ecc41b69","html_url":"https://github.com/omgreenfield/omg-thor-ext","commit_stats":null,"previous_names":["omgreenfield/thor-ext"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fomg-thor-ext","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fomg-thor-ext/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fomg-thor-ext/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omgreenfield%2Fomg-thor-ext/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omgreenfield","download_url":"https://codeload.github.com/omgreenfield/omg-thor-ext/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":["ruby","thor"],"created_at":"2024-12-21T09:14:24.709Z","updated_at":"2025-04-07T19:19:49.677Z","avatar_url":"https://github.com/omgreenfield.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Thor extension\n\n[Matt Brictson](https://github.com/mattbrictson) had the [same complaints](https://mattbrictson.com/blog/fixing-thor-cli-behavior) I did about [Thor](https://github.com/rails/thor). Well, he went and fixed them all, I put them into a gem and now use it in many of my Thor CLIs.\n\n## Original source\n\nhttps://github.com/mattbrictson/gem/blob/main/lib/example/thor_ext.rb\n\n## What it does\n\nOverwrites a few Thor methods so that it behaves more like a typical CLI:\n\n- Accepts `-h` or `--help` to show help\n- Treats unrecognized options as errors instead of ignoring them\n- Prints error to `stderr` in red with no stacktrace\n- Prints full stacktrace when setting `VERBOSE` environment variable\n- Exists with a non-zero status on error\n\n## Installation\n\n```sh\ngem i thor-ext\n```\n\n```ruby\ngem 'thor-ext'\n```\n\n## Usage\n\nIn your Thor CLI:\n\n```ruby\nclass SuperAwesomeCli \u003c Thor\n  extend ThorExt::Start\nend\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgreenfield%2Fomg-thor-ext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomgreenfield%2Fomg-thor-ext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomgreenfield%2Fomg-thor-ext/lists"}