flags

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAccountFlag

func GetAccountFlag(cmd *cobra.Command, as ledger.Context, flag string) (*ledger.Account, error)

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

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