{"id":16318511,"url":"https://github.com/vic/mix_under","last_synced_at":"2025-06-11T14:38:08.016Z","repository":{"id":57528264,"uuid":"123640390","full_name":"vic/mix_under","owner":"vic","description":"Execute mix tasks under Elixir umbrella applications","archived":false,"fork":false,"pushed_at":"2018-04-27T17:14:31.000Z","size":27,"stargazers_count":20,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-08T23:36:33.381Z","etag":null,"topics":["elixir","mix","mix-tasks","task","test","umbrella"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vic.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":"2018-03-02T23:09:26.000Z","updated_at":"2024-04-22T05:05:21.000Z","dependencies_parsed_at":"2022-08-30T11:50:27.465Z","dependency_job_id":null,"html_url":"https://github.com/vic/mix_under","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/vic%2Fmix_under","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fmix_under/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fmix_under/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fmix_under/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vic","download_url":"https://codeload.github.com/vic/mix_under/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vic%2Fmix_under/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259280830,"owners_count":22833458,"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":["elixir","mix","mix-tasks","task","test","umbrella"],"created_at":"2024-10-10T22:23:45.473Z","updated_at":"2025-06-11T14:38:07.994Z","avatar_url":"https://github.com/vic.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mix under\n\n\u003ca href=\"https://travis-ci.org/vic/mix_under\"\u003e\u003cimg src=\"https://travis-ci.org/vic/mix_under.svg\"\u003e\u003c/a\u003e\n\n\nExecute mix tasks under specific umbrella apps, useful for running ecto migrations or tests.\n\n## Usage\n\n```shell\nmix under GLOB [TASK...]\n```\n\n## Example\n\nHaving an example umbrella app like:\n\n```shell\nexample/\n  apps/\n    earth/\n    heaven/\n    hell/\n```\n\nThis will run test on a single app\n\n```shell\n$ mix under heaven test\nHeaven\n..\n\nFinished in 0.05 seconds\n1 doctest, 1 test, 0 failures\n\nRandomized with seed 132550\n```\n\nOr you can use a glob (be sure to quote it to prevent your shell from expanding the glob itself)\n\n```shell\n$ mix under 'he*' test\nHeaven\n..\n\nFinished in 0.05 seconds\n1 doctest, 1 test, 0 failures\n\nRandomized with seed 941219\n\n.Hell\n.\n\nFinished in 0.05 seconds\n1 doctest, 1 test, 0 failures\n\nRandomized with seed 862534\n```\n\n## How about `mix cmd --app heaven mix test`?\n\nWell, you can of course use it if you dont mind writing a bit more :),\n(you can always create an alias in your umbrella to run those long commands for you).\n\n## Under any directory\n\nWhen the glob given to `mix under` looks like a path (it contains `/`), the glob\nis used directly without prepending `apps/` to it.\n\n```shell\nmix under apps/hell test\n```\n\nThis means, you can execute mix on any directory, not only below your umbrella.\n\n```shell\nmix under /other/project test\n```\n\n## Under relative task arguments\n\nWhen the task you are executing expects a path to a file to work with (for example for\nexecuting a script or only one test file), `mix under` will convert given relative paths\nto absolute. \n\nThis comes handy for executing mix from inside your IDE which would probably use paths\nrelative to your project root.\n\n```shell\n$ mix under earth test apps/earth/test/angel_test.exs\n==\u003e (under apps/earth) mix test /home/vic/h/mix_under/example/apps/earth/test/angel_test.exs\nEarth.Angel\n.\n\nFinished in 0.04 seconds\n1 test, 0 failures\n\nRandomized with seed 700004\n```\n\n\n\n## Installation\n\n```elixir\n$ mix archive.install github vic/mix_under\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fmix_under","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvic%2Fmix_under","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvic%2Fmix_under/lists"}