Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsThelmaCommand ¶
func AsThelmaCommand(c Command, opts ...CommandOption) cli.ThelmaCommand
AsThelmaCommand convert a sql.Command into a cli.ThelmaCommand
Types ¶
type Command ¶
type Command interface { ConfigureCobra(cobraCommand *cobra.Command) Run(conn api.Connection, app app.ThelmaApp, rc cli.RunContext) error }
Command an interface for `thelma sql ...` commands.
type CommandOption ¶
type CommandOption func(options *CommandOptions)
type CommandOptions ¶
type CommandOptions struct { // if true, do not include connection config flags like --database or --privilege-level on the Cobra command ExcludeConnectFlags bool }
Click to show internal directories.
Click to hide internal directories.