Mercurial > hg > TextShaper
comparison textshaper/main.py @ 37:8cf9a26b9aaa
STUB: textshaper/main.py textshaper/tablify.py
| author | Jeff Hammel <k0scist@gmail.com> |
|---|---|
| date | Mon, 12 May 2014 10:29:06 -0700 |
| parents | 55e0579e2143 |
| children | 21b6a9569f21 |
comparison
equal
deleted
inserted
replaced
| 36:55e0579e2143 | 37:8cf9a26b9aaa |
|---|---|
| 10 import subprocess | 10 import subprocess |
| 11 import sys | 11 import sys |
| 12 import time | 12 import time |
| 13 from .commands import Commands | 13 from .commands import Commands |
| 14 from .indent import deindent, indent | 14 from .indent import deindent, indent |
| 15 from .tablify import make_csv | |
| 15 from .whitespace import underscore | 16 from .whitespace import underscore |
| 16 from which import which | 17 from which import which |
| 17 | 18 |
| 18 HR = '--' | 19 HR = '--' |
| 19 | 20 |
| 39 # TODO: do this dynamically | 40 # TODO: do this dynamically |
| 40 commands = Commands() | 41 commands = Commands() |
| 41 commands.add(indent, 'i') | 42 commands.add(indent, 'i') |
| 42 commands.add(deindent, 'd') | 43 commands.add(deindent, 'd') |
| 43 commands.add(underscore, 'u') | 44 commands.add(underscore, 'u') |
| 45 commands.add(make_csv, 'c') | |
| 44 return commands | 46 return commands |
| 45 | 47 |
| 46 | 48 |
| 47 def add_options(parser): | 49 def add_options(parser): |
| 48 """add options to the parser instance""" | 50 """add options to the parser instance""" |
