add dockerfile

move cli functions in module
add configure command
This commit is contained in:
Matthew Scragg 2014-09-18 16:44:01 -05:00
parent d94855e3c5
commit 58f9109bd2
6 changed files with 192 additions and 131 deletions

View file

@ -23,7 +23,7 @@ def read():
def save(conf):
with open(os.path.join(APP_PATH, 'config.json'), 'w') as f:
f.write(json.dumps(conf, sort_keys=True, indent=4, separators=(',', ': ')))
f.write(json.dumps(conf, sort_keys=True, indent=4, separators=(',', ': ')).strip() + '\n')
APP_PATH = os.path.abspath(os.path.dirname(__file__) + "/../..")
USER_HOME = os.path.abspath(os.path.expanduser("~"))