cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cli

type Cli struct {
	DbUser string `help:"database uesr"`
	DbPass string `help:"database password"`
	DbHost string `help:"database host" default:"localhost"`
	DbPort int    `help:"database port" default:"3306"`
	DbSock string `help:"database socket"`
	DbName string `help:"database name"`
	Sql    string `help:"sql"`

	Version VersionCmd `cmd help:"show version"`
	// contains filtered or unexported fields
}

func New

func New(out io.Writer, in io.Reader) *Cli

func (*Cli) Run

func (c *Cli) Run() error

type VersionCmd

type VersionCmd struct{}

Jump to

Keyboard shortcuts

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