From 5279a2ffee6fbbe0983f0407c543fd2b1247833e Mon Sep 17 00:00:00 2001 From: ken-kost Date: Sun, 30 Mar 2025 00:38:27 +0100 Subject: [PATCH] Document r flag in tasks docs --- lib/mix/tasks/ash_postgres.create.ex | 1 + lib/mix/tasks/ash_postgres.drop.ex | 1 + lib/mix/tasks/ash_postgres.migrate.ex | 2 ++ lib/mix/tasks/ash_postgres.rollback.ex | 1 + 4 files changed, 5 insertions(+) diff --git a/lib/mix/tasks/ash_postgres.create.ex b/lib/mix/tasks/ash_postgres.create.ex index bfe117b1..a99baf33 100644 --- a/lib/mix/tasks/ash_postgres.create.ex +++ b/lib/mix/tasks/ash_postgres.create.ex @@ -28,6 +28,7 @@ defmodule Mix.Tasks.AshPostgres.Create do ## Command line options * `--domains` - the domains who's repos you want to migrate. + * `-r, --repo` - the repo to create * `--quiet` - do not log output * `--no-compile` - do not compile before creating * `--no-deps-check` - do not compile before creating diff --git a/lib/mix/tasks/ash_postgres.drop.ex b/lib/mix/tasks/ash_postgres.drop.ex index a79a1025..43028c38 100644 --- a/lib/mix/tasks/ash_postgres.drop.ex +++ b/lib/mix/tasks/ash_postgres.drop.ex @@ -31,6 +31,7 @@ defmodule Mix.Tasks.AshPostgres.Drop do ## Command line options * `--domains` - the domains who's repos should be dropped + * `-r, --repo` - the repo to drop * `-q`, `--quiet` - run the command quietly * `-f`, `--force` - do not ask for confirmation when dropping the database. Configuration is asked only when `:start_permanent` is set to true diff --git a/lib/mix/tasks/ash_postgres.migrate.ex b/lib/mix/tasks/ash_postgres.migrate.ex index 81e4d63f..36b9187d 100644 --- a/lib/mix/tasks/ash_postgres.migrate.ex +++ b/lib/mix/tasks/ash_postgres.migrate.ex @@ -74,6 +74,8 @@ defmodule Mix.Tasks.AshPostgres.Migrate do * `--all` - run all pending migrations + * `--repo`, `-r` - the repo to migrate + * `--step`, `-n` - run n number of pending migrations * `--to` - run all migrations up to and including version diff --git a/lib/mix/tasks/ash_postgres.rollback.ex b/lib/mix/tasks/ash_postgres.rollback.ex index 211dbdff..b9a8354a 100644 --- a/lib/mix/tasks/ash_postgres.rollback.ex +++ b/lib/mix/tasks/ash_postgres.rollback.ex @@ -32,6 +32,7 @@ defmodule Mix.Tasks.AshPostgres.Rollback do ## Command line options * `--domains` - the domains who's repos should be rolledback * `--all` - revert all applied migrations + * `--repo`, `-r` - the repo to rollback * `--step` / `-n` - revert n number of applied migrations * `--to` / `-v` - revert all migrations down to and including version * `--quiet` - do not log migration commands