domain

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	CommonFields    cli.StringSlice
	Directory       string
	FileList        cli.StringSlice
	IDField         string
	OutputFilename  string
	OutputPath      string
	Tag             string
	Title           string
	ColumnNameCase  string
	TableNameCase   string
	TableNamePlural bool

	Config config.Config
}

Options describe the allowed options of the cli tool.

func NewOptions added in v0.3.0

func NewOptions(cfg config.Config) Options

NewOptions creates and returns a new options structure.

func (*Options) GetColumnNameCase added in v0.3.0

func (o *Options) GetColumnNameCase() *cli.StringFlag

GetColumnNameCase returns the definition for column_name_case flag.

func (*Options) GetCommonFields added in v0.3.0

func (o *Options) GetCommonFields() *cli.StringSliceFlag

GetCommonFields returns the definition for common_field flag.

func (*Options) GetDirectoryFlag

func (o *Options) GetDirectoryFlag() *cli.StringFlag

GetDirectoryFlag returns the definition for directory flag.

func (*Options) GetFileList

func (o *Options) GetFileList() *cli.StringSliceFlag

GetFileList returns the definition for file_list flag.

func (*Options) GetIDField

func (o *Options) GetIDField() *cli.StringFlag

GetIDField returns the definition for id_field flag.

func (*Options) GetOutputFilename

func (o *Options) GetOutputFilename() *cli.StringFlag

GetOutputFilename returns the definition for output_filename flag.

func (*Options) GetOutputPath

func (o *Options) GetOutputPath() *cli.StringFlag

GetOutputPath returns the definition for output_path flag.

func (*Options) GetTableNameCase added in v0.3.0

func (o *Options) GetTableNameCase() *cli.StringFlag

GetTableNameCase returns the definition for table_name_case flag.

func (*Options) GetTableNamePlural added in v0.3.0

func (o *Options) GetTableNamePlural() *cli.BoolFlag

GetTableNamePlural returns the definition for title flag.

func (*Options) GetTag

func (o *Options) GetTag() *cli.StringFlag

GetTag returns the definition for tag flag.

func (*Options) GetTitle

func (o *Options) GetTitle() *cli.StringFlag

GetTitle returns the definition for title flag.

func (*Options) Validate added in v0.3.0

func (o *Options) Validate() error

Validate the provided values to confirm that they are all correct.

Jump to

Keyboard shortcuts

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