MCPcopy Create free account
hub / github.com/alexisvisco/amigo / cliGenerateHelp

Method cliGenerateHelp

cli_cmd_generate.go:157–175  ·  view source on GitHub ↗

cliGenerateHelp displays help for the generate command

()

Source from the content-addressed store, hash-verified

155
156// cliGenerateHelp displays help for the generate command
157func (c *CLI) cliGenerateHelp() {
158 help := `Usage: generate [options] <name>
159
160Generate a new migration file with the given name.
161
162Options:
163 --format string File format: 'sql' or 'go' (default: configured value)
164 -h, --help Show this help message
165
166Arguments:
167 name Name of the migration (can contain spaces or underscores)
168
169Examples:
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}

Callers 1

cliGenerateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected