exportcsv

package
v0.0.0-...-e5e043f Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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.

func RunPrompt

func RunPrompt(ctx context.Context, o *PromptOptions) error

RunPrompt runs the `prompt` 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

Jump to

Keyboard shortcuts

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