Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccountFlag ¶ added in v0.0.14
type AccountFlag struct {
// contains filtered or unexported fields
}
AccountFlag manages a flag to parse a commodity.
func (*AccountFlag) Set ¶ added in v0.0.14
func (cf *AccountFlag) Set(v string) error
Set implements pflag.Value.
func (AccountFlag) String ¶ added in v0.0.14
func (cf AccountFlag) String() string
Value returns the flag value.
func (AccountFlag) Type ¶ added in v0.0.14
func (cf AccountFlag) Type() string
Type implements pflag.Value.
func (AccountFlag) ValueWithDefault ¶ added in v0.0.14
func (cf AccountFlag) ValueWithDefault(ctx *account.Registry, def *model.Account) (*model.Account, error)
ValueWithDefault returns the account. If no account has been specified, the default is returned.
type CommodityFlag ¶ added in v0.0.14
type CommodityFlag struct {
// contains filtered or unexported fields
}
CommodityFlag manages a flag to parse a commodity.
func (*CommodityFlag) Set ¶ added in v0.0.14
func (cf *CommodityFlag) Set(v string) error
Set implements pflag.Value.
func (CommodityFlag) String ¶ added in v0.0.14
func (cf CommodityFlag) String() string
Value returns the flag value.
func (CommodityFlag) Type ¶ added in v0.0.14
func (cf CommodityFlag) Type() string
Type implements pflag.Value.
type DateFlag ¶ added in v0.0.14
DateFlag manages a flag to determine a date.
type IntervalFlags ¶ added in v0.0.14
type IntervalFlags struct {
// contains filtered or unexported fields
}
IntervalFlags manages multiple flags to determine a time period.
func (*IntervalFlags) Setup ¶ added in v0.0.14
func (pf *IntervalFlags) Setup(cmd *cobra.Command, def date.Interval)
Setup configures the flags.
func (IntervalFlags) Value ¶ added in v0.0.14
func (pf IntervalFlags) Value() date.Interval
Value returns the period.
type MappingFlag ¶ added in v0.0.14
type MappingFlag struct {
// contains filtered or unexported fields
}
MappingFlag manages a flag of type -c1,<regex>.
func (*MappingFlag) Set ¶ added in v0.0.14
func (cf *MappingFlag) Set(v string) error
Set implements pflag.Value.
func (MappingFlag) String ¶ added in v0.0.14
func (cf MappingFlag) String() string
func (MappingFlag) Type ¶ added in v0.0.14
func (cf MappingFlag) Type() string
Type implements pflag.Value.
func (*MappingFlag) Value ¶ added in v0.0.14
func (cf *MappingFlag) Value() account.Mapping
Value returns the value of this flag.
type Multiperiod ¶ added in v0.1.2
type Multiperiod struct {
// contains filtered or unexported fields
}
func (*Multiperiod) Partition ¶ added in v0.1.2
func (mp *Multiperiod) Partition(clip date.Period) date.Partition
func (*Multiperiod) Setup ¶ added in v0.1.2
func (mp *Multiperiod) Setup(cmd *cobra.Command)
type PeriodFlag ¶ added in v0.1.1
type PeriodFlag struct {
// contains filtered or unexported fields
}
func (*PeriodFlag) Setup ¶ added in v0.1.1
func (pf *PeriodFlag) Setup(cmd *cobra.Command, def date.Period)
func (*PeriodFlag) Value ¶ added in v0.1.1
func (pf *PeriodFlag) Value() date.Period