{"id":33916724,"url":"https://github.com/demjhonsilver/hyraft-rule","last_synced_at":"2026-01-13T22:01:39.767Z","repository":{"id":326241192,"uuid":"1102392789","full_name":"demjhonsilver/hyraft-rule","owner":"demjhonsilver","description":"A standalone command system with migrations for Hyraft framework.","archived":false,"fork":false,"pushed_at":"2025-11-26T15:07:13.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-29T12:47:44.505Z","etag":null,"topics":["cli","command","command-line","command-line-tool","framework","hyraft","ruby"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/hyraft-rule","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/demjhonsilver.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-23T11:35:16.000Z","updated_at":"2025-11-27T03:46:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/demjhonsilver/hyraft-rule","commit_stats":null,"previous_names":["demjhonsilver/hyraft-rule"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/demjhonsilver/hyraft-rule","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demjhonsilver%2Fhyraft-rule","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demjhonsilver%2Fhyraft-rule/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demjhonsilver%2Fhyraft-rule/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demjhonsilver%2Fhyraft-rule/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/demjhonsilver","download_url":"https://codeload.github.com/demjhonsilver/hyraft-rule/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/demjhonsilver%2Fhyraft-rule/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28400397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","command","command-line","command-line-tool","framework","hyraft","ruby"],"created_at":"2025-12-12T07:28:34.639Z","updated_at":"2026-01-13T22:01:39.756Z","avatar_url":"https://github.com/demjhonsilver.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003cdiv align=\"center\"\u003e\n\n# Hyraft Rule\n\n[![Gem Version](https://badge.fury.io/rb/hyraft-rule.svg?icon=si%3Arubygems\u0026icon_color=%23ffffff)](https://badge.fury.io/rb/hyraft-rule)\n![Downloads](https://img.shields.io/gem/dt/hyraft-rule)\n![License](https://img.shields.io/github/license/demjhonsilver/hyraft-rule)\n![Ruby Version](https://img.shields.io/badge/ruby-%3E%3D%203.4.0-red)\n![Tests](https://github.com/demjhonsilver/hyraft-rule/actions/workflows/ci.yml/badge.svg)\n\n\u003c/div\u003e\n\n\n\nThis is a standalone command-line interface (CLI) for the Hyraft framework.\n\n\n\n## Syntax ( Command KEY )\n```bash\n\n- hyraft-rule (standard)\n- hyr-rule    (alias)\n\n- hyraft-rule-db (standard / database command)\n- hyr-rule-db    (alias / database command)\n\n```\n\n\n## Usage ( Assemble / Disassemble )\n\n\n```bash\n assemble  - Creates blueprint structure for templates, engine, and adapters.\n\n disassemble - Deconstructs the project into its core components.\n```\n\n```bash\n# Default web-app\nhyr-rule assemble articles\nhyr-rule disassemble articles\n\n# Specific app folders\n\nhyr-rule assemble {any-folder-name}/users\n\n\nhyr-rule assemble admin-app/users\nhyr-rule disassemble admin-app/users\n\nhyr-rule assemble api-app/products\nhyr-rule disassemble api-app/products\n```\n\n\n\n## Usage ( Engine )\n\nGenerate:\n\n```bash\n\nhyr-rule circuit articles\n\nhyr-rule port articles\n\nhyr-rule source article\n\n```\n\n## Usage ( Web Adapter a.k.a Controller )\n\nGenerate:\n\n```bash\n\n# Only add the specific web adapter\nhyr-rule web-adapter articles\nhyr-rule web-adapter admin-app/products\n\n# Only remove the specific web adapter\nhyr-rule remove-adapter articles\nhyr-rule remove-adapter admin-app/users\n```\n\n## Usage ( data-gateway )\n\nGenerate:\n\n```bash\nhyr-rule data-gateway articles\nhyr-rule data-gateway admin-app/products\n```\n\n\n\n\n## Usage ( Templates )\n- hyr-rule\n\nGenerate:\n\n```bash\n\nhyr-rule template articles\nhyraft-rule template articles\n\nhyr-rule template admin-app/users\nhyraft-rule template admin-app/users\n```\n\n## Usage ( For Help )\n- hyr-rule\n\nGenerate:\n\n```bash\n\nhyr-rule h\n\nhyr-rule help\n\nhyr-rule -h\n\nhyraft-rule h\n\nhyraft-rule help\n\nhyraft-rule -h\n\n```\n\n\n## Usage ( Database ) \n- hyr-rule-db\n\n\nSchema:  \n      \n\n```bash\n      hyr-rule-db generate create_users\n      hyr-rule-db generate add_email_to_users\n\n   - Migration Generation Schema Examples:\n   \n      hyr-rule-db generate create_users\n      hyr-rule-db generate create_articles\n      hyr-rule-db generate create_products\n      hyr-rule-db generate create_categories\n      hyr-rule-db generate add_image_file_to_articles\n      hyr-rule-db generate add_price_to_products\n      hyr-rule-db generate remove_status_from_posts\n      hyr-rule-db generate drop_old_tables\n\n\n    Examples:\n     hyr-rule-db generate create_articles title content:text\n\n     hyr-rule-db generate create_products name:string price:decimal description:text user_id:int\n     hyr-rule-db generate create_users username:string age:int email:string active:bool created_at:datetime\n\n     hyr-rule-db generate create_products name:string price:decimal description:text user_id:int\n     hyr-rule-db generate create_users username age:int email active:bool\n     hyr-rule-db generate create_articles title content:text published_at:datetime views:int\n\n\n```\nMigrations:\n\n```bash\n    Hyraft Rule Database Commands\n\n    Commands:\n\n      migrate, up        - Run all pending migrations\n      rollback, down     - Rollback all migrations\n      status             - Show migration status\n      reset              - Rollback and re-run all migrations\n      generate \u003cname\u003e    - Create a new migration file\n      help               - Show this help\n\n    Examples:\n\n      hyr-rule-db migrate\n      hyr-rule-db status\n      hyr-rule-db rollback\n      hyr-rule-db reset\n      hyr-rule-db help\n\n    Environment Usage:\n\n      hyr-rule-db migrate                     # Current environment (run: hyr s thin)\n      APP_ENV=test hyr-rule-db migrate        # Test environment (run: APP_ENV=test hyr s thin)\n      APP_ENV=development hyr-rule-db migrate # Development environment (run: APP_ENV=development hyr s thin)\n      APP_ENV=production hyr-rule-db migrate  # Production environment (run: APP_ENV=production hyr s thin)\n\n    Quick Reference:\n\n      # Generate and run migrations for a new table\n      hyr-rule-db generate create_users\n      hyr-rule-db migrate\n\n      # Add a column to existing table\n      hyr-rule-db generate add_email_to_users\n      hyr-rule-db migrate\n\n      # Check what needs to be applied\n      hyr-rule-db status\n\n      # Rollback if something went wrong\n      hyr-rule-db rollback\n\n```\n\n\n\n\n\n\n\n\n\n## Development\n\nAfter checking out the repo, run `bundle install` to install dependencies.\n\nThen, run `rake test` to run the tests.\n\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/demjhonsilver/hyraft-rule. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/demjhonsilver/hyraft-rule/blob/master/CODE_OF_CONDUCT.md).\n\n## License\n\nThe gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).\n\n## Code of Conduct\n\nEveryone interacting in the Hyraft::Rule project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/demjhonsilver/hyraft-rule/blob/master/CODE_OF_CONDUCT.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemjhonsilver%2Fhyraft-rule","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdemjhonsilver%2Fhyraft-rule","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdemjhonsilver%2Fhyraft-rule/lists"}