Documentation ¶
Index ¶
- func DefaultFlagSet(ctx context.Context) (*flag.FlagSet, error)
- func Run(ctx context.Context, logger *log.Logger) error
- func RunWithFlagSet(ctx context.Context, fs *flag.FlagSet, logger *log.Logger) error
- func RunWithOptions(ctx context.Context, opts *RunOptions, logger *log.Logger) error
- type RunOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunWithFlagSet ¶
func RunWithOptions ¶
Types ¶
type RunOptions ¶
type RunOptions struct { Mode string `json:"mode"` Verbose bool `json:"verbose"` Sources []string `json:"sources"` SpatialDatabaseURI string `json:"spatial_database_uri"` PropertiesReaderURI string `json:"properties_reader_uri"` IteratorURI string `json:"iterator_uri"` EnableCustomPlacetypes bool `json:"enable_custom_placetypes"` CustomPlacetypes string `json:"custom_placetypes"` IsWhosOnFirst bool `json:"is_whosonfirst"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Placetypes []string `json:"placetypes,omitempty"` Geometries string `json:"geometries,omitempty"` AlternateGeometries []string `json:"alternate_geometries,omitempty"` IsCurrent []int64 `json:"is_current,omitempty"` IsCeased []int64 `json:"is_ceased,omitempty"` IsDeprecated []int64 `json:"is_deprecated,omitempty"` IsSuperseded []int64 `json:"is_superseded,omitempty"` IsSuperseding []int64 `json:"is_superseding,omitempty"` InceptionDate string `json:"inception_date,omitempty"` CessationDate string `json:"cessation_date,omitempty"` Properties []string `json:"properties,omitempty"` Sort []string `json:"sort,omitempty"` }
func RunOptionsFromFlagSet ¶ added in v0.9.0
Click to show internal directories.
Click to hide internal directories.