mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 03:42:25 +03:00
11 lines
348 B
Python
11 lines
348 B
Python
#!/usr/bin/env python
|
|
# usage: hledger$ tools/coverage HPCCOMMAND HLEDGERARGS
|
|
# A front-end for hledgercov/hpc. Resets the tix count on each invocation.
|
|
|
|
import sys, os
|
|
cov="hledgercov"
|
|
cmd, args = sys.argv[1], ' '.join(sys.argv[2:])
|
|
os.system("rm -f %s.tix" % cov)
|
|
os.system("bin/%s %s >/dev/null" % (cov,args))
|
|
os.system("hpc %s %s" % (cmd,cov))
|