load

package
v0.0.0-...-93e2160 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Filter

type Filter struct {
	Field string
	Value string
}

func (*Filter) UnmarshalFlag

func (f *Filter) UnmarshalFlag(value string) error

type Load

type Load struct {
	File    string    `short:"f" long:"file" description:"The Excel file to load." required:"true"`
	Sheets  []Sheet   `short:"s" long:"sheet" description:"The sheet to load (format: <sheet>:<label>)." required:"true"`
	Format  string    `` /* 163-byte string literal not displayed */
	Columns []Mapping `short:"m" long:"mapping" description:"The columns mappings (format: <field>:<offset>)." required:"true"`
	Filters []Filter  `short:"x" long:"filter" description:"Only output records matching the filter (format: <field>:<value>)." optional:"true"`
}

func (*Load) Execute

func (cmd *Load) Execute(args []string) error

type Mapping

type Mapping struct {
	Name   string
	Offset int
}

func (*Mapping) UnmarshalFlag

func (m *Mapping) UnmarshalFlag(value string) error

type Sheet

type Sheet struct {
	Name  string
	Label string
}

func (*Sheet) UnmarshalFlag

func (s *Sheet) UnmarshalFlag(value string) error

Jump to

Keyboard shortcuts

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