cli

package
v0.0.0-...-032d74d Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	PrintDebug bool
	PrintTrace bool
}

func NewLogger

func NewLogger(options *Options) *Logger

func (*Logger) Debug

func (m *Logger) Debug(args ...interface{})

func (*Logger) Fatal

func (m *Logger) Fatal(args ...interface{})

func (*Logger) Print

func (m *Logger) Print(args ...interface{})

func (*Logger) Trace

func (m *Logger) Trace(args ...interface{})

type Options

type Options struct {
	Opts       *docopt.Opts
	ConnString string
	Table      string
	DataFile   string
	HasHeaders bool
	Purge      bool
	AttrMaps   map[string]string
	Debug      bool
	Trace      bool
	DryRun     bool
	Compact    bool
}

func NewOptions

func NewOptions(argv []string) *Options

Jump to

Keyboard shortcuts

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