pkg

package
v0.0.0-...-cf0705c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(root *cobra.Command, args ...string) (output string, err error)

func ExecuteCommandC

func ExecuteCommandC(root *cobra.Command, args ...string) (c *cobra.Command, output string, err error)

func ExpectLines

func ExpectLines(t T, output string, lines ...string)

func GetComponents

func GetComponents(filename string) (timestamp int, migrationName string, err error)

func GetExpectedLinesInit

func GetExpectedLinesInit() []string

func ListMigrations

func ListMigrations(cmd *cobra.Command, wd, migrationsDir string, fs afero.Fs, environment string) error

Types

type Migration

type Migration struct {
	Name    string
	ModTime string
}

func GetMigrations

func GetMigrations(wd, migrationsDir string, FS afero.Fs, environment string) ([]Migration, error)

type T

type T interface {
	Helper()
	Errorf(string, ...interface{})
}

Directories

Path Synopsis
gen
tpl

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL