{"id":16998902,"url":"https://github.com/maxandersen/rewrite-jbang","last_synced_at":"2025-04-12T06:07:55.735Z","repository":{"id":66829051,"uuid":"389319035","full_name":"maxandersen/rewrite-jbang","owner":"maxandersen","description":null,"archived":false,"fork":false,"pushed_at":"2024-09-05T07:00:25.000Z","size":12,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T06:07:45.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","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/maxandersen.png","metadata":{"files":{"readme":"README.adoc","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":"2021-07-25T10:22:10.000Z","updated_at":"2025-03-16T09:00:49.000Z","dependencies_parsed_at":"2023-02-21T06:16:03.674Z","dependency_job_id":null,"html_url":"https://github.com/maxandersen/rewrite-jbang","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/maxandersen%2Frewrite-jbang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Frewrite-jbang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Frewrite-jbang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxandersen%2Frewrite-jbang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxandersen","download_url":"https://codeload.github.com/maxandersen/rewrite-jbang/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248525143,"owners_count":21118618,"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":[],"created_at":"2024-10-14T04:06:28.216Z","updated_at":"2025-04-12T06:07:55.700Z","avatar_url":"https://github.com/maxandersen.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Open Rewrite as a jbang script\n\nAs an experiment from asking https://github.com/openrewrite/rewrite/discussions/834\nI made this little script which is 97% same as the code found in https://github.com/openrewrite/rewrite-maven-plugin.\n\nIt lets you run openrewrite on any kind of project.\n\nHow to run: \n\n1. Install jbang (https://jbang.dev/download)\n2. You can list recipes using:\n```\njbang rewrite@maxandersen/rewrite-jbang discover\n```\n3. Try run it with a few recipes: \n\n```\njbang rewrite@maxandersen/rewrite-jbang --recipes org.openrewrite.java.cleanup.Cleanup,org.openrewrite.java.format.AutoFormat\n```\n\nYou can also install the script using: `jbang app install  https://github.com/maxandersen/rewrite-jbang/blob/master/rewrite.java`\nand just use `rewrite` directly, i.e.:\n\n`rewrite --recipes org.openrewrite.java.cleanup.Cleanup,org.openrewrite.java.format.AutoFormat --dry-run`\n\n\nLimitations: \n\n* does not (yet) offer to refer to dependencies\n* totally just slammed together code a slow sunday morning! \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxandersen%2Frewrite-jbang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxandersen%2Frewrite-jbang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxandersen%2Frewrite-jbang/lists"}