hledger-ui-1.40: Terminal interface for the hledger accounting system
Safe HaskellNone
LanguageHaskell2010

Hledger.UI.UIOptions

Description

 
Synopsis

Documentation

packageversion :: PackageVersion Source #

progname :: ProgramName Source #

prognameandversion :: String Source #

Generate the version string for this program. The template haskell call is here rather than in Hledger.Cli.Version to avoid wasteful recompilation.

uiflags :: [Flag RawOpts] Source #

uimode :: Mode RawOpts Source #

data UIOpts Source #

Constructors

UIOpts 

Fields

Instances

Instances details
Show UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

showsPrec :: Int -> UIOpts -> ShowS

show :: UIOpts -> String

showList :: [UIOpts] -> ShowS

HasCliOpts UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

cliOpts :: Lens' UIOpts CliOpts

available_width :: Lens' UIOpts Int

command :: Lens' UIOpts String

debug__ :: Lens' UIOpts Int

file__ :: Lens' UIOpts [FilePath]

inputopts :: Lens' UIOpts InputOpts

no_new_accounts :: Lens' UIOpts Bool

output_file :: Lens' UIOpts (Maybe FilePath)

output_format :: Lens' UIOpts (Maybe String)

progstarttime :: Lens' UIOpts POSIXTime

rawopts__ :: Lens' UIOpts RawOpts

reportspec :: Lens' UIOpts ReportSpec

width__ :: Lens' UIOpts (Maybe String)

HasBalancingOpts UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

balancingOpts :: Lens' UIOpts BalancingOpts

commodity_styles :: Lens' UIOpts (Maybe (Map CommoditySymbol AmountStyle))

ignore_assertions :: Lens' UIOpts Bool

infer_balancing_costs :: Lens' UIOpts Bool

HasInputOpts UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

inputOpts :: Lens' UIOpts InputOpts

aliases :: Lens' UIOpts [String]

anon__ :: Lens' UIOpts Bool

auto__ :: Lens' UIOpts Bool

balancingopts :: Lens' UIOpts BalancingOpts

defer :: Lens' UIOpts Bool

forecast :: Lens' UIOpts (Maybe DateSpan)

infer_costs :: Lens' UIOpts Bool

infer_equity :: Lens' UIOpts Bool

ioDay :: Lens' UIOpts Day

mformat :: Lens' UIOpts (Maybe StorageFormat)

mrules_file :: Lens' UIOpts (Maybe FilePath)

new__ :: Lens' UIOpts Bool

new_save :: Lens' UIOpts Bool

pivot :: Lens' UIOpts String

reportspan :: Lens' UIOpts DateSpan

strict :: Lens' UIOpts Bool

verbose_tags :: Lens' UIOpts Bool

HasReportOpts UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

reportOpts :: ReportableLens' UIOpts ReportOpts

period :: ReportableLens' UIOpts Period

statuses :: ReportableLens' UIOpts [Status]

depth :: ReportableLens' UIOpts (Maybe Int)

date2 :: ReportableLens' UIOpts Bool

real :: ReportableLens' UIOpts Bool

querystring :: ReportableLens' UIOpts [Text]

HasReportOptsNoUpdate UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

reportOptsNoUpdate :: Lens' UIOpts ReportOpts

accountlistmode :: Lens' UIOpts AccountListMode

average :: Lens' UIOpts Bool

balanceaccum :: Lens' UIOpts BalanceAccumulation

balancecalc :: Lens' UIOpts BalanceCalculation

budgetpat :: Lens' UIOpts (Maybe Text)

color__ :: Lens' UIOpts Bool

conversionop :: Lens' UIOpts (Maybe ConversionOp)

date2NoUpdate :: Lens' UIOpts Bool

declared :: Lens' UIOpts Bool

depthNoUpdate :: Lens' UIOpts (Maybe Int)

drop__ :: Lens' UIOpts Int

empty__ :: Lens' UIOpts Bool

format :: Lens' UIOpts StringFormat

infer_prices :: Lens' UIOpts Bool

interval :: Lens' UIOpts Interval

invert :: Lens' UIOpts Bool

layout :: Lens' UIOpts Layout

no_elide :: Lens' UIOpts Bool

no_total :: Lens' UIOpts Bool

normalbalance :: Lens' UIOpts (Maybe NormalSign)

percent :: Lens' UIOpts Bool

periodNoUpdate :: Lens' UIOpts Period

pretty :: Lens' UIOpts Bool

querystringNoUpdate :: Lens' UIOpts [Text]

realNoUpdate :: Lens' UIOpts Bool

related :: Lens' UIOpts Bool

row_total :: Lens' UIOpts Bool

show_costs :: Lens' UIOpts Bool

sort_amount :: Lens' UIOpts Bool

sortspec :: Lens' UIOpts SortSpec

statusesNoUpdate :: Lens' UIOpts [Status]

summary_only :: Lens' UIOpts Bool

transpose__ :: Lens' UIOpts Bool

txn_dates :: Lens' UIOpts Bool

value :: Lens' UIOpts (Maybe ValuationType)

HasReportSpec UIOpts Source # 
Instance details

Defined in Hledger.UI.UIOptions

Methods

reportSpec :: Lens' UIOpts ReportSpec

rsDay :: Lens' UIOpts Day

rsQuery :: Lens' UIOpts Query

rsQueryOpts :: Lens' UIOpts [QueryOpt]

rsReportOpts :: Lens' UIOpts ReportOpts

rawOptsToUIOpts :: RawOpts -> IO UIOpts Source #

Process a RawOpts into a UIOpts. This will return a usage error if provided an invalid theme.