cmd/sum.py
Ethan Dalool 4a9051e617
Big migrations and linting.
With pathclass.glob_many, we can clean up and feel more confident
about many programs that use pipeable to take glob patterns.

Added return 0 to all programs that didn't have it, so we have
consistent and explicit command line return values.

Other linting and whitespace.
2021-09-23 23:42:45 -07:00

4 lines
120 B
Python

from voussoirkit import pipeable
total = sum(float(x) for x in pipeable.go() if x.strip())
pipeable.stdout(f'{total}')