{"id":16701915,"url":"https://github.com/gootik/rebar_cmd","last_synced_at":"2025-03-21T19:33:18.491Z","repository":{"id":49556074,"uuid":"56079983","full_name":"gootik/rebar_cmd","owner":"gootik","description":"A rebar plugin for running custom commands","archived":false,"fork":false,"pushed_at":"2021-06-14T22:25:00.000Z","size":27,"stargazers_count":16,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-18T04:42:50.623Z","etag":null,"topics":["erlang","rebar"],"latest_commit_sha":null,"homepage":"","language":"Erlang","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gootik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-12T16:29:55.000Z","updated_at":"2024-05-28T18:42:28.000Z","dependencies_parsed_at":"2022-08-20T03:50:23.741Z","dependency_job_id":null,"html_url":"https://github.com/gootik/rebar_cmd","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gootik%2Frebar_cmd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gootik%2Frebar_cmd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gootik%2Frebar_cmd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gootik%2Frebar_cmd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gootik","download_url":"https://codeload.github.com/gootik/rebar_cmd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244855719,"owners_count":20521694,"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":["erlang","rebar"],"created_at":"2024-10-12T18:46:08.606Z","updated_at":"2025-03-21T19:33:18.170Z","avatar_url":"https://github.com/gootik.png","language":"Erlang","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rebar_cmd [![Build Status](https://github.com/gootik/rebar_cmd/workflows/build/badge.svg)](https://github.com/gootik/rebar_cmd) [![Hex.pm](https://img.shields.io/hexpm/v/rebar_cmd.svg)](https://hex.pm/packages/rebar_cmd)\n\nRun custom shell commands with `rebar3 cmd \u003ccommand\u003e`.\n\n## Purpose\n\nThe goal of this plugin is to allow `rebar3` to run additional commands, so\nthat one can use it solely to manage everything in an Erlang project.\n\nWhether it is bringing Docker containers up, tagging a new Git release or\ndeleting log files, you should be able to use a single build tool.\n\n## How it works\n\nThis is a very simple and straightforward plugin. Simply describe your\ncommand in `rebar.config` and execute (just like you would Linux aliases)\nwith `rebar3 cmd \u003ccommand\u003e`.\n\n## Usage\n\nAdd the plugin to your `rebar.config`:\n\n```erlang\n    {plugins, [\n        {rebar_cmd, \"0.2.6\"}\n    ]}.\n\n    {commands, [\n        {docker_up, \"docker-compose up -d\"},\n        {sync, \"git fetch upstream \u0026\u0026 git merge upstream/master\"}\n    ]}.\n```\n\nThe example above shows you how to describe a command to bring your\nDocker containers up, as well as another one to sync a Git repository\nwith remote master.\n\nSome options are available, as described below:\n\n* `[{timeout, \u003cMs\u003e}]` (defaults to `15000`)\n* `[{verbose, \u003cVerbose\u003e}]` (defaults to `false`)\n\ne.g. you could change the previous `docker_up` command to have it fail\nafter 5s with `{docker_up, \"docker-compose up -d\", [{timeout, 5000}]},`.\nYou could also get more info from the shell for the above command\n`sync` with\n`{sync, \"git fetch upstream \u0026\u0026 git merge upstream/master\", [{verbose, true}]}`\n\nCheck it out:\n\n```bash\n$ rebar3 cmd sync\n===\u003e Analyzing applications...\n===\u003e Compiling rebar_cmd\n===\u003e Command sync resulted in: \"Already up to date.\"\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgootik%2Frebar_cmd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgootik%2Frebar_cmd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgootik%2Frebar_cmd/lists"}