Skip to content

Commit f1ded22

Browse files
thielemasimonmichael
authored andcommitted
cli: Commands.Register: rename parameter base -> baseUrl
1 parent 84a6e16 commit f1ded22

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

hledger/Hledger/Cli/Commands/Register.hs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ postingsReportAsCsv =
121121

122122
postingsReportAsSpreadsheet ::
123123
AmountFormat -> Maybe Text -> [Text] ->
124-
PostingsReport -> [[Spr.Cell Spr.NumLines T.Text]]
125-
postingsReportAsSpreadsheet fmt base query is =
124+
PostingsReport -> [[Spr.Cell Spr.NumLines Text]]
125+
postingsReportAsSpreadsheet fmt baseUrl query is =
126126
Spr.addHeaderBorders
127127
(map Spr.headerCell
128128
["txnidx","date","code","description","account","amount","total"])
129129
:
130-
map (postingsReportItemAsRecord fmt base query) is
130+
map (postingsReportItemAsRecord fmt baseUrl query) is
131131

132132
{- ToDo:
133133
link txnidx to journal URL,
@@ -136,12 +136,12 @@ link txnidx to journal URL,
136136
postingsReportItemAsRecord ::
137137
(Spr.Lines border) =>
138138
AmountFormat -> Maybe Text -> [Text] ->
139-
PostingsReportItem -> [Spr.Cell border T.Text]
140-
postingsReportItemAsRecord fmt base query (_, _, _, p, b) =
139+
PostingsReportItem -> [Spr.Cell border Text]
140+
postingsReportItemAsRecord fmt baseUrl query (_, _, _, p, b) =
141141
[idx,
142-
(dateCell base query (paccount p) date) {Spr.cellType = Spr.TypeDate},
142+
(dateCell baseUrl query (paccount p) date) {Spr.cellType = Spr.TypeDate},
143143
cell code, cell desc,
144-
setAccountAnchor base query (paccount p) $ cell acct,
144+
setAccountAnchor baseUrl query (paccount p) $ cell acct,
145145
amountCell (pamount p),
146146
amountCell b]
147147
where

0 commit comments

Comments
 (0)