Documentation
¶
Index ¶
- Constants
- Variables
- func DebugFlag() []cmd.Flag
- func Flags(flags ...[]cmd.Flag) []cmd.Flag
- func NewCli(p Processors) *cmd.App
- func WithContext(p Processor) func(*cmd.Context)
- type CliConf
- func (c *CliConf) DataFile() (DataFile, error)
- func (c *CliConf) DataFiles() ([]DataFile, error)
- func (p *CliConf) Debug() bool
- func (p *CliConf) HasDataFile() bool
- func (p *CliConf) HasDataFiles() bool
- func (p *CliConf) HasDebug() bool
- func (p *CliConf) HasInputFile() bool
- func (p *CliConf) HasNoop() bool
- func (p *CliConf) HasOutputFile() bool
- func (p *CliConf) HasTemplate() bool
- func (p *CliConf) InputFile() string
- func (c *CliConf) IsTabDelimited() bool
- func (c *CliConf) Line() int
- func (p *CliConf) Noop() bool
- func (p *CliConf) OutputFile() string
- func (p *CliConf) String() string
- func (p *CliConf) Template() string
- type DataFile
- type Processor
- type Processors
Constants ¶
View Source
const (
DefaultFieldTemplate = "struct_sql_tomap.fm"
)
Variables ¶
View Source
var DataFileFlag = []cmd.Flag{ cmd.StringFlag{ Name: "data-file", Usage: "Provide data from a file. Value should be name:file.ext", }, }
Functions ¶
func NewCli ¶
func NewCli(p Processors) *cmd.App
func WithContext ¶
Types ¶
type CliConf ¶
type CliConf struct {
// contains filtered or unexported fields
}
func NewCliConf ¶
func (*CliConf) HasDataFile ¶
func (*CliConf) HasDataFiles ¶
func (*CliConf) HasInputFile ¶
func (*CliConf) HasOutputFile ¶
func (*CliConf) HasTemplate ¶
func (*CliConf) IsTabDelimited ¶
func (*CliConf) OutputFile ¶
Click to show internal directories.
Click to hide internal directories.