()
| 21 | type NewCommand struct{} |
| 22 | |
| 23 | func (*NewCommand) Help() string { |
| 24 | helpText := ` |
| 25 | Usage: sql-migrate new [options] name |
| 26 | |
| 27 | Create a new a database migration. |
| 28 | |
| 29 | Options: |
| 30 | |
| 31 | -config=dbconfig.yml Configuration file to use. |
| 32 | -env="development" Environment. |
| 33 | name The name of the migration |
| 34 | ` |
| 35 | return strings.TrimSpace(helpText) |
| 36 | } |
| 37 | |
| 38 | func (*NewCommand) Synopsis() string { |
| 39 | return "Create a new migration" |