cli

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2018 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cli = grumble.New(&grumble.Config{
	Name:                  "DMK",
	Description:           "Data migration kit.",
	HistoryFile:           "/tmp/dmk.hist",
	Prompt:                "dmk » ",
	PromptColor:           color.New(color.FgGreen, color.Bold),
	HelpHeadlineColor:     color.New(color.FgGreen),
	HelpHeadlineUnderline: true,
	HelpSubCommands:       true,

	Flags: func(f *grumble.Flags) {
		f.String("p", "project", "", "specify a project")
		f.String("d", "directory", "./", "specify a directory")
	},
})

Cli is the DMK CLI see http://github.com/desertbit/grumble

View Source
var DriverManager = driver.DriverManager

DriverManager manages the available database drivers.

View Source
var TunnelManager = tunnel.Manager{}

TunnelManager manages the available tunnels.

View Source
var Version = "0.0.0"

Functions

func GetProjects

func GetProjects() (projects []migrate.Project, err error)

GetProjects returns an array slice of projects.

func SetProject

func SetProject(project migrate.Project)

SetProject sets a project as the active project

Types

type PromptCfg

type PromptCfg struct {
	Value   *string
	Message string
	Help    string
	Default string
}

PromptCfg configures the visual prompt.

Jump to

Keyboard shortcuts

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