Documentation
¶
Index ¶
- func BuildCommand(baseOptions *options.GenerateOptions) *cobra.Command
- func BuildPromptCommand(baseOptions *options.GenerateOptions) *cobra.Command
- func RunExportCSV(ctx context.Context, o *ExportCSVOptions) error
- func RunPrompt(ctx context.Context, o *PromptOptions) error
- type ExportCSVOptions
- type PromptOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildCommand ¶
func BuildCommand(baseOptions *options.GenerateOptions) *cobra.Command
BuildCommand builds the export-csv command.
func BuildPromptCommand ¶
func BuildPromptCommand(baseOptions *options.GenerateOptions) *cobra.Command
BuildPromptCommand builds the `prompt` command.
func RunExportCSV ¶
func RunExportCSV(ctx context.Context, o *ExportCSVOptions) error
RunExportCSV runs the export-csv command.
Types ¶
type ExportCSVOptions ¶
type ExportCSVOptions struct { *options.GenerateOptions ProtoDir string SrcDir string OutputDir string }
ExportCSVOptions are the options for the export-csv command.
func (*ExportCSVOptions) BindFlags ¶
func (o *ExportCSVOptions) BindFlags(cmd *cobra.Command)
BindFlags binds the flags to the command.
type PromptOptions ¶
type PromptOptions struct { *options.GenerateOptions ProtoDir string SrcDir string Output string // StrictInputColumnKeys ensures that all input datapoints have this shape. // This helps detect typos in the examples. StrictInputColumnKeys []string }
PromptOptions are the options for the prompt command.
func (*PromptOptions) BindFlags ¶
func (o *PromptOptions) BindFlags(cmd *cobra.Command)
BindFlags binds the flags to the command.
func (*PromptOptions) InitDefaults ¶
func (o *PromptOptions) InitDefaults() error
Click to show internal directories.
Click to hide internal directories.