mirror of
https://codeberg.org/scip/tablizer.git
synced 2025-12-17 04:30:56 +01:00
add support for template output mode with new option --templage <tmpl> (#47)
This commit is contained in:
16
t/test-template.txtar
Normal file
16
t/test-template.txtar
Normal file
@@ -0,0 +1,16 @@
|
||||
exec tablizer -r testtable.txt -P '{{.species | title}}s are {{.type }}'
|
||||
stdout 'Humans are invasive'
|
||||
|
||||
exec tablizer -r testtable.txt -P '{{.species | sha256sum}}'
|
||||
stdout '79a5478768d2447431a90f7f4549df735f50ad541371464c248abc7522dc3a01'
|
||||
|
||||
exec tablizer -r testtable.txt -P '{{add 100 .count}}'
|
||||
stdout 104
|
||||
|
||||
-- testtable.txt --
|
||||
SPECIES TYPE HOME COUNT STAGE
|
||||
human invasive earth 4 brink
|
||||
riedl peaceful keauna 33 civilized
|
||||
namak invasive namak 123 imperium
|
||||
heduu peaceful iu 66 imperium
|
||||
kenaha peaceful kohi 3333 hunter-gatherer
|
||||
Reference in New Issue
Block a user