gen

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmdGen

func NewCmdGen() *cobra.Command

NewCmdGen returns new initialized instance of 'gen' sub command.

Types

type GenOptions

type GenOptions struct {
	TableStr string
	Tables   []string
}

GenOptions is an option struct to support 'gen' sub command.

func NewGenOptions

func NewGenOptions() *GenOptions

NewGenOptions returns an initialized GenOptions instance.

func (*GenOptions) Complete

func (o *GenOptions) Complete(cmd *cobra.Command, args []string) error

Complete completes all the required options.

func (*GenOptions) Run

func (o *GenOptions) Run(args []string) error

Run executes a new sub command using the specified options.

func (*GenOptions) Validate

func (o *GenOptions) Validate(cmd *cobra.Command, args []string) error

Validate makes sure there is no discrepancy in command options.

Jump to

Keyboard shortcuts

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