Documentation
¶
Index ¶
- func GetAccountFlag(cmd *cobra.Command, as ledger.Context, flag string) (*ledger.Account, error)
- func GetCommodityFlag(cmd *cobra.Command, ctx ledger.Context, name string) (*ledger.Commodity, error)
- func GetDateFlag(cmd *cobra.Command, flag string) (*time.Time, error)
- func GetRegexFlag(cmd *cobra.Command, flag string) (*regexp.Regexp, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountFlag ¶
GetAccountFlag is a helper to get an account passed as a flag to the command.
func GetCommodityFlag ¶
func GetCommodityFlag(cmd *cobra.Command, ctx ledger.Context, name string) (*ledger.Commodity, error)
GetCommodityFlag is a helper to get a commodity passed as a flag to the command.
func GetDateFlag ¶
GetDateFlag is a helper to get a date passed as a flag to the command.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.