-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[sqlx-cli] --source
flag is difficult to discover and confusing to use
#1565
Comments
It does, but it's a command line flag: $ sqlx mig --help
sqlx-migrate
Group of commands for creating and running migrations
USAGE:
sqlx migrate [OPTIONS] <SUBCOMMAND>
FLAGS:
-h, --help
Prints help information
-V, --version
Prints version information
OPTIONS:
--source <source>
Path to folder containing migrations [default: migrations]
... I'd be open to maybe adding a way to specify this via a config file, but the |
Hmm, the $ sqlx migrate add --help
sqlx-migrate-add
Create a new migration with the given description, and the current time as the version
USAGE:
sqlx migrate add [FLAGS] <description>
ARGS:
<description>
FLAGS:
-h, --help Prints help information
-r If true, creates a pair of up and down migration files with same version else
creates a single sql file
-V, --version Prints version information I wonder if that's a Clap bug or if we structured the subcommands wrong. |
Okay, so Clap treats
Versus:
(This is the error I'd expect as the So the solution here would be to copy To every variant of |
--source
flag is difficult to discover and confusing to use
No way to override migrations directory for CLI.
The text was updated successfully, but these errors were encountered: