flags

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountFlag

func GetAccountFlag(cmd *cobra.Command, flag string) (*accounts.Account, error)

GetAccountFlag is a helper to get an account passed as a flag to the command.

func GetCommodityFlag

func GetCommodityFlag(cmd *cobra.Command, name string) (*commodities.Commodity, error)

GetCommodityFlag is a helper to get a commodity passed as a flag to the command.

func GetDateFlag

func GetDateFlag(cmd *cobra.Command, flag string) (*time.Time, error)

GetDateFlag is a helper to get a date passed as a flag to the command.

func GetRegexFlag

func GetRegexFlag(cmd *cobra.Command, flag string) (*regexp.Regexp, error)

GetRegexFlag is a helper to get a regex passed as a flag to the command.

Types

This section is empty.

Jump to

Keyboard shortcuts

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