hledger-ui
Safe HaskellNone
LanguageGHC2021

Hledger.UI.UIOptions

Synopsis

Documentation

packageversion :: PackageVersionString Source #

progname :: ProgramName Source #

prognameandversion :: String Source #

Generate the version string for this program.

binaryinfo :: HledgerBinaryInfo Source #

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

coloropt :: Lens' UIOpts (Maybe YNA)

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)

pageropt :: Lens' UIOpts (Maybe Bool)

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

account_lots_tags :: Lens' UIOpts (Map AccountName Text)

account_types :: Lens' UIOpts (Map AccountName AccountType)

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

ignore_assertions :: Lens' UIOpts Bool

imbalance_account :: Lens' UIOpts AccountName

infer_balancing_costs :: Lens' UIOpts Bool

infer_imbalance :: Lens' UIOpts Bool

lenient_lots :: Lens' UIOpts Bool

lotful_commodities :: Lens' UIOpts (Set CommoditySymbol)

txn_balancing :: Lens' UIOpts TransactionBalancingPrecision

verbose_balancing_tags :: 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

dryrun :: Lens' UIOpts Bool

fileoverrides :: Lens' UIOpts (Map FilePath Text)

forecast :: Lens' UIOpts (Maybe DateSpan)

forecastOnlyForDisplay :: Lens' UIOpts Bool

ignore_lots :: Lens' UIOpts Bool

importing :: Lens' UIOpts Bool

infer_costs :: Lens' UIOpts Bool

infer_equity :: Lens' UIOpts Bool

ioDay :: Lens' UIOpts Day

journaldir :: Lens' UIOpts (Maybe FilePath)

mformat :: Lens' UIOpts (Maybe StorageFormat)

mrules_file :: Lens' UIOpts (Maybe FilePath)

new__ :: Lens' UIOpts Bool

new_save :: Lens' UIOpts Bool

oldtimeclock :: Lens' UIOpts Bool

pivot :: Lens' UIOpts String

reportspan :: Lens' UIOpts DateSpan

scanfiles :: Lens' UIOpts Bool

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 DepthSpec

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

balance_base_url :: Lens' UIOpts (Maybe Text)

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 DepthSpec

drop__ :: Lens' UIOpts Int

empty__ :: Lens' UIOpts Bool

fold_depth :: Lens' UIOpts (Maybe Int)

format :: Lens' UIOpts StringFormat

full_names :: Lens' UIOpts Bool

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

period_titles :: Lens' UIOpts PeriodTitles

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]

subreport_titles :: Lens' UIOpts (Maybe Text)

summary_only :: Lens' UIOpts Bool

title__ :: Lens' UIOpts (Maybe Text)

translations :: Lens' UIOpts Translations

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

rsRowQuery :: Lens' UIOpts Query

rawOptsToUIOpts :: RawOpts -> IO UIOpts Source #

Process a RawOpts into a UIOpts. An invalid --theme name will raise an error.

uiLoadOpts :: CliOpts -> CliOpts Source #

The options to load (or reload) the journal with: lot detail kept, and no conversion to cost basis. The UI collapses lots and converts to cost when it derives the display journal for the current options (uiDisplayJournal), so that the L and B keys can turn either off again.