Documentation ¶
Index ¶
- type Options
- func (o *Options) GetColumnNameCase() *cli.StringFlag
- func (o *Options) GetCommonFields() *cli.StringSliceFlag
- func (o *Options) GetDirectoryFlag() *cli.StringFlag
- func (o *Options) GetFileList() *cli.StringSliceFlag
- func (o *Options) GetIDField() *cli.StringFlag
- func (o *Options) GetOutputFilename() *cli.StringFlag
- func (o *Options) GetOutputPath() *cli.StringFlag
- func (o *Options) GetTableNameCase() *cli.StringFlag
- func (o *Options) GetTableNamePlural() *cli.BoolFlag
- func (o *Options) GetTag() *cli.StringFlag
- func (o *Options) GetTitle() *cli.StringFlag
- func (o *Options) Validate() error
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
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.