cmd

package
v0.0.0-...-c64788e Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2021 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommand

func AddCommand(command ...*cobra.Command)

AddCommand adds one or more commands to this parent command.

func Execute

func Execute(args ...string) error

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func RemoveCommand

func RemoveCommand(command ...*cobra.Command)

RemoveCommand removes one or more commands from a parent command.

func SetCustomMigrationDbLinkName

func SetCustomMigrationDbLinkName(name string)

func SetCustomMigrationGetDbConfig

func SetCustomMigrationGetDbConfig(f func(name string) MigrateDbConfig)

Types

type MigrateDbConfig

type MigrateDbConfig struct {
	Type   string `json:"type" xml:"type"`
	Host   string `json:"host" xml:"host"`
	Port   string `json:"port" xml:"port"`
	Name   string `json:"name" xml:"name"`
	User   string `json:"user" xml:"user"`
	Pass   string `json:"pass" xml:"pass"`
	Link   string `json:"link" xml:"link"`
	Prefix string `json:"prefix" xml:"prefix"`
}

MigrateDbConfig migrate database config fields

Jump to

Keyboard shortcuts

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