Documentation ¶
Overview ¶
Package cli provides a command line interface for database migrations using the popular cobra CLI package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MigrateCommand ¶
func MigrateCommand(ctx context.Context, f NewWorkerFunc) *cobra.Command
MigrateCommand returns a cobra command that can be integrated into a command line program.
Pass context.Background() for the context, or alternatively pass a context that will cancel when the user interrupts by pressing Ctrl-C or similar.
Types ¶
type NewWorkerFunc ¶
NewWorkerFunc is called to creata a migration worker.
Click to show internal directories.
Click to hide internal directories.