command

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var COMMIT = "dev"
View Source
var VERSION = "0.0.0"

Functions

func GetFormattedVersion

func GetFormattedVersion() string

func GetVersion

func GetVersion() string

Types

type Migrate

type Migrate struct {
	ConfigFilePath string `long:"config"  description:"path to the migrate.yml, defaults to ./migrate.yml"`
	DryRun         bool   `long:"dry-run"  description:"does not perform any migration operations when true"`
	Debug          bool   `long:"debug"  description:"sets log level to debug"`
	RedactSecrets  bool   `long:"no-redact" description:"do not redact sensitive information when printing debug logs"`
}

func (*Migrate) Execute

func (m *Migrate) Execute([]string) error

Execute - runs the migration

type Revert added in v0.4.0

type Revert struct {
	Migrate
}

func (*Revert) Execute added in v0.4.0

func (r *Revert) Execute([]string) error

Execute - runs the migration in reverse

type VersionCommand

type VersionCommand struct {
}

func (*VersionCommand) Execute

func (c *VersionCommand) Execute([]string) error

Execute - returns the version

Jump to

Keyboard shortcuts

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