cimport

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 Import

func Import(arguments *ImportCmd) error

Types

type ImportCmd

type ImportCmd struct {
	File         string `arg:"" required:"" help:"File containing the query descriptions" type:"existingfile"`
	Format       string `help:"File format: csv or json. Default: json" short:"f"  enum:"csv,json" default:"json"`
	ClearIds     bool   `help:"Strip out the ids from the query definitions" default:"false"`
	CsvHasHeader bool   `help:"The CSV file has an header. Default: true" default:"true" negatable:""`
	CsvDelimiter rune   `help:"Field separator in the CSV file. Default: ,"  default:"," type:"character"`
	CsvComment   rune   `help:"Comment character in the CSV file. Default: #"  default:"#" type:"character"`
}

func (*ImportCmd) Run

func (arguments *ImportCmd) 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