Switch to renamed gfmrun tool

This commit is contained in:
Dan Buch
2016-07-16 09:12:42 -04:00
parent ec402ecec5
commit 2c1fd1510c
3 changed files with 8 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ def main(sysargs=sys.argv[:]):
targets = {
'vet': _vet,
'test': _test,
'gfmxr': _gfmxr,
'gfmrun': _gfmrun,
'toc': _toc,
'gen': _gen,
}
@@ -56,8 +56,8 @@ def _test():
os.remove(combined_name)
def _gfmxr():
_run(['gfmxr', '-c', str(_gfmxr_count()), '-s', 'README.md'])
def _gfmrun():
_run(['gfmrun', '-c', str(_gfmrun_count()), '-s', 'README.md'])
def _vet():
@@ -86,7 +86,7 @@ def _run(command):
check_call(command)
def _gfmxr_count():
def _gfmrun_count():
with open('README.md') as infile:
lines = infile.read().splitlines()
return len(filter(_is_go_runnable, lines))