summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2019-01-27 14:27:54 +0100
committerlassulus <lassulus@lassul.us>2019-01-27 14:27:54 +0100
commitfd4876da16d436a38700b358f26ba48903de8d20 (patch)
tree13ec0159a17603cfa58d97e7638721ebf4dd4eb4
parent052cef71fd24ce36bbd043e2aa12d2ff3a9d247c (diff)
reaktor2: pretty print bier balance
-rw-r--r--krebs/2configs/reaktor2.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/krebs/2configs/reaktor2.nix b/krebs/2configs/reaktor2.nix
index ae2e975a2..bdd95a256 100644
--- a/krebs/2configs/reaktor2.nix
+++ b/krebs/2configs/reaktor2.nix
@@ -99,7 +99,9 @@ let
state_file = "${stateDir}/ledger";
};
filename = pkgs.writeDash "bier-balance" ''
- ${pkgs.hledger}/bin/hledger -f $state_file bal -N
+ ${pkgs.hledger}/bin/hledger -f $state_file bal -N -O csv \
+ | ${pkgs.coreutils}/bin/tail +2 \
+ | ${pkgs.miller}/bin/mlr --icsv --opprint cat
'';
};
}