mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-12 17:27:50 +08:00
parse: Run gofmt after generating boilerplate.
This commit is contained in:
parent
a1a495cc09
commit
5dee621830
|
@ -1,5 +1,6 @@
|
|||
#!/usr/bin/python2.7
|
||||
import re
|
||||
import os
|
||||
|
||||
|
||||
def put_set(out, parent, field, child):
|
||||
|
@ -60,6 +61,8 @@ def main():
|
|||
if m:
|
||||
typename, extraargs = m.groups()
|
||||
put_parse(out, typename, extraargs)
|
||||
out.close()
|
||||
os.system('gofmt -w boilerplate.go')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Reference in New Issue
Block a user