command

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type REPL

type REPL struct {
	Stdin          io.Reader
	Stdout, Stderr io.Writer
	// contains filtered or unexported fields
}

REPL will start a REPL to query CSV files.

func (*REPL) Execute

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

Execute the command

type Server

type Server struct {
	User     string `short:"u" long:"user" default:"root" description:"User name to access the server."`
	Password string `short:"p" long:"password" description:"Password to access the server."`
	Port     int    `short:"P" long:"port" default:"3306" description:"Port in which the server will listen."`
	Host     string `short:"h" long:"host" default:"127.0.0.1" description:"Host name of the server."`
	// contains filtered or unexported fields
}

Server starts a new MySQL server with the CSV files as a backend.

func (*Server) Execute

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

Execute the command.

type Version

type Version struct {
	Version, Commit, Date string
}

Version is a command that will output the version.

func (Version) Execute

func (v Version) Execute([]string) error

Execute the command.

Jump to

Keyboard shortcuts

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