cliGenerateHelp displays help for the generate command
()
| 155 | |
| 156 | // cliGenerateHelp displays help for the generate command |
| 157 | func (c *CLI) cliGenerateHelp() { |
| 158 | help := `Usage: generate [options] <name> |
| 159 | |
| 160 | Generate a new migration file with the given name. |
| 161 | |
| 162 | Options: |
| 163 | --format string File format: 'sql' or 'go' (default: configured value) |
| 164 | -h, --help Show this help message |
| 165 | |
| 166 | Arguments: |
| 167 | name Name of the migration (can contain spaces or underscores) |
| 168 | |
| 169 | Examples: |
| 170 | generate create_users_table |
| 171 | generate --format=go add_email_column |
| 172 | generate "create users table" |
| 173 | ` |
| 174 | fmt.Fprint(c.output, help) |
| 175 | } |