Documentation ¶
Overview ¶
Package cobrax contains helpers to use with github.com/spf13/cobra.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrRequireFlagOrCommand = errors.New("require flag or command")
)
Errors.
Functions ¶
func NewGooseMySQLCmd ¶
func NewGooseMySQLCmd(ctx context.Context, goose *goosepkg.Instance, getCfg func() (*GooseMySQLConfig, error)) *cobra.Command
NewGooseMySQLCmd creates new goose command executed by run.
func NewGoosePostgresCmd ¶ added in v0.4.0
func NewGoosePostgresCmd(ctx context.Context, goose *goosepkg.Instance, getCfg func() (*GoosePostgresConfig, error)) *cobra.Command
NewGoosePostgresCmd creates new goose command executed by run.
Types ¶
type GooseMySQLConfig ¶
GooseMySQLConfig contain configuration for goose command.
type GoosePostgresConfig ¶ added in v0.4.0
type GoosePostgresConfig struct { Postgres *def.PostgresConfig GoosePostgresDir string }
GoosePostgresConfig contain configuration for goose command.
Click to show internal directories.
Click to hide internal directories.