| Safe Haskell | None |
|---|---|
| Language | GHC2021 |
Hledger.UI.UIOptions
Synopsis
- packageversion :: PackageVersionString
- progname :: ProgramName
- prognameandversion :: String
- binaryinfo :: HledgerBinaryInfo
- 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
- uiLoadOpts :: CliOpts -> CliOpts
- getHledgerUIOpts :: IO UIOpts
Documentation
packageversion :: PackageVersionString Source #
prognameandversion :: String Source #
Generate the version string for this program.
binaryinfo :: HledgerBinaryInfo Source #
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 coloropt :: Lens' UIOpts (Maybe YNA) 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) pageropt :: Lens' UIOpts (Maybe Bool) 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 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 # | |
Defined in Hledger.UI.UIOptions Methods inputOpts :: Lens' UIOpts InputOpts aliases :: Lens' UIOpts [String] balancingopts :: Lens' UIOpts BalancingOpts 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 journaldir :: Lens' UIOpts (Maybe FilePath) mformat :: Lens' UIOpts (Maybe StorageFormat) mrules_file :: Lens' UIOpts (Maybe FilePath) oldtimeclock :: Lens' UIOpts Bool reportspan :: Lens' UIOpts DateSpan scanfiles :: Lens' UIOpts Bool 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 balance_base_url :: Lens' UIOpts (Maybe Text) 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 DepthSpec fold_depth :: Lens' UIOpts (Maybe Int) format :: Lens' UIOpts StringFormat full_names :: Lens' UIOpts Bool infer_prices :: Lens' UIOpts Bool interval :: Lens' UIOpts Interval normalbalance :: Lens' UIOpts (Maybe NormalSign) periodNoUpdate :: Lens' UIOpts Period period_titles :: Lens' UIOpts PeriodTitles 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] subreport_titles :: Lens' UIOpts (Maybe Text) summary_only :: Lens' UIOpts Bool title__ :: Lens' UIOpts (Maybe Text) translations :: Lens' UIOpts Translations 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 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.
getHledgerUIOpts :: IO UIOpts Source #