Add pipeablemain sublime snippet.

This commit is contained in:
Ethan Dalool 2020-06-17 14:18:11 -07:00
parent affeee1731
commit f8117e6b1b

View file

@ -0,0 +1,18 @@
<snippet>
<content><![CDATA[
from voussoirkit import pipeable
def main(argv):
for line in pipeable.go(argv, strip=True, skip_blank=True):
pipeable.output(line)
if __name__ == '__main__':
raise SystemExit(main(sys.argv[1:]))
]]></content>
<tabTrigger>pipeablemain</tabTrigger>
<!-- Optional: Set a tabTrigger to define how to trigger the snippet -->
<!-- <tabTrigger>hello</tabTrigger> -->
<!-- Optional: Set a scope to limit where the snippet will trigger -->
<!-- <scope>source.python</scope> -->
</snippet>