export

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export(arguments *ExportCmd) error

Types

type ExportCmd

type ExportCmd struct {
	Output           string `help:"Write to file instead of stdout" short:"o" placeholder:"file"`
	Format           string `help:"Output format: csv or json. Default: json" short:"f" enum:"csv,json" default:"json"`
	Prefix           string `help:"Export the query definitions with a name that starts with the specified prefix."`
	CsvIncludeHeader bool   `help:"Add an header to the CSV file. Default: true" default:"true" negatable:""`
	CsvDelimiter     rune   `help:"Field separator in the CSV file. Default: ,"  default:"," type:"character"`
}

func (*ExportCmd) Run

func (arguments *ExportCmd) Run(ctx *context.Context) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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