Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Main ¶
type Main struct { idk.Main `flag:"!embed"` Files []string `help:"List of files, URLs, or directories to ingest."` Header []string `help:"Optional header. If not passed, first line of each file is used."` IgnoreHeader bool `short:"g" help:"Ignore header in file and use configured header. You *must* configure a header."` JustDoIt bool `` /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Main) ValidateHeaders ¶
ValidateHeaders is used during --dry-run to check that all headers provided at CLI or in CSV files can be parsed properly. Also returns the field structs as it would be parsed in a normal run. In the case of multiple CSV files, only returns the fields for the last file.
Click to show internal directories.
Click to hide internal directories.