Skip to content
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

fix example for command's help #30

Merged
merged 1 commit into from
Nov 3, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions commands/new.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func NewScriptCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "script <file name>",
Short: "Generates new migration files",
Example: "morph new script create_users --driver postgresql --dir db/migrations --timestamp",
Example: "morph new script create_users --driver postgres --dir db/migrations --timestamp",
Args: cobra.ExactArgs(1),
Run: generateScriptCmdF,
}
Expand Down Expand Up @@ -89,7 +89,7 @@ func NewPlanCmd() *cobra.Command {
cmd := &cobra.Command{
Use: "plan <file name>",
Short: "Generates new plan for the migration files with revert steps",
Example: "morph new plan plan --driver postgresql --dsn postgres://localhost:5432/morph --path db/migrations",
Example: "morph new plan plan --driver postgres --dsn postgres://localhost:5432/morph --path db/migrations",
Args: cobra.ExactArgs(1),
Run: generatePlanCmdF,
}
Expand Down
Loading