Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hledger.UI.UIOptions
Description
Synopsis
- packageversion :: PackageVersion
- progname :: ProgramName
- prognameandversion :: String
- uiflags :: [Flag RawOpts]
- uimode :: Mode RawOpts
- data UIOpts = UIOpts {
- uoWatch :: Bool
- uoTheme :: Maybe String
- uoRegister :: Maybe String
- uoCliOpts :: CliOpts
- defuiopts :: UIOpts
- rawOptsToUIOpts :: RawOpts -> IO UIOpts
- getHledgerUIOpts :: IO UIOpts
Documentation
packageversion :: PackageVersion 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.
Constructors
UIOpts | |
Fields
|
Instances
Show UIOpts Source # | |
HasCliOpts UIOpts Source # | |
Defined in Hledger.UI.UIOptions Methods cliOpts :: Lens' UIOpts CliOpts available_width :: Lens' UIOpts Int command :: Lens' UIOpts String 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 | |
HasBalancingOpts UIOpts Source # | |
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 # | |
Defined in Hledger.UI.UIOptions Methods inputOpts :: Lens' UIOpts InputOpts aliases :: Lens' UIOpts [String] balancingopts :: Lens' UIOpts BalancingOpts forecast :: Lens' UIOpts (Maybe DateSpan) infer_costs :: Lens' UIOpts Bool infer_equity :: Lens' UIOpts Bool mformat :: Lens' UIOpts (Maybe StorageFormat) mrules_file :: Lens' UIOpts (Maybe FilePath) reportspan :: Lens' UIOpts DateSpan verbose_tags :: Lens' UIOpts Bool | |
HasReportOpts UIOpts Source # | |
Defined in Hledger.UI.UIOptions | |
HasReportOptsNoUpdate UIOpts Source # | |
Defined in Hledger.UI.UIOptions Methods reportOptsNoUpdate :: Lens' UIOpts ReportOpts accountlistmode :: Lens' UIOpts AccountListMode balanceaccum :: Lens' UIOpts BalanceAccumulation balancecalc :: Lens' UIOpts BalanceCalculation budgetpat :: Lens' UIOpts (Maybe Text) conversionop :: Lens' UIOpts (Maybe ConversionOp) date2NoUpdate :: Lens' UIOpts Bool depthNoUpdate :: Lens' UIOpts (Maybe Int) format :: Lens' UIOpts StringFormat infer_prices :: Lens' UIOpts Bool interval :: Lens' UIOpts Interval normalbalance :: Lens' UIOpts (Maybe NormalSign) periodNoUpdate :: Lens' UIOpts Period querystringNoUpdate :: Lens' UIOpts [Text] realNoUpdate :: 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 | |
HasReportSpec UIOpts Source # | |
Defined in Hledger.UI.UIOptions Methods reportSpec :: Lens' UIOpts ReportSpec 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.
getHledgerUIOpts :: IO UIOpts Source #