config

package
v0.0.0-...-cb5a51a Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrHelp = errors.New("help")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	PostCode             string `short:"p" long:"postcode" description:"The postcode to scrape bin times for" required:"true"`
	AddressCode          string `short:"a" long:"addressCode" description:"The address to scrape bin times for" required:"true"`
	RegularCollectionDay int    `short:"r" long:"regularcollectionday" description:"The regular collection day of the week" required:"true"`
	FromNumber           string `short:"f" long:"fromnumber" required:"true" description:"The number to send the confirmation SMS from"`
	ToNumber             string `short:"n" long:"tonumber" required:"true" description:"The number to send the confirmation SMS to"`
	DryRun               bool   `short:"x" long:"dryrun" description:"Run everything, but don't do the booking and assume it succeeds"`
	TodayDate            string `short:"d" long:"todaydate" description:"The date to use for today's date"`
}

func GetConfig

func GetConfig() (Config, error)

Jump to

Keyboard shortcuts

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