ffisImport

package
v0.0.0-...-fe0d34b Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd struct {
	// Positional arguments
	SourceDirectory string `arg:"" name:"directory" type:"existingdir" predictor:"dir" help:"Source directory containing FFIS spreadsheets"`
	S3Bucket        string `arg:"" name:"bucket" help:"Destination S3 bucket name"`

	// Flags
	S3Prefix       string        `name:"s3-prefix" help:"Path prefix for mapped S3 keys" default:"sources"`
	S3DateLayout   string        `name:"s3-date-layout" help:"Date layout for mapped S3 keys" default:"2006/01/02"`
	S3Suffix       string        `name:"s3-suffix" help:"Path suffix for mapped S3 keys" default:"ffis.org/download.xlsx"`
	S3UsePathStyle bool          `name:"s3-use-path-style" help:"Use path-style addressing for S3 bucket"`
	DryRun         bool          `help:"Dry run only - no files will be uploaded to S3"`
	Wait           time.Duration `help:"Duration to wait between uploads" default:"0s"`
}

func (*Cmd) Help

func (cmd *Cmd) Help() string

func (*Cmd) Run

func (cmd *Cmd) Run(app *kong.Kong, logger *log.Logger) error

Jump to

Keyboard shortcuts

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