add support for predefined profiles

This commit is contained in:
Thomas Ruoff
2016-03-01 23:38:24 +01:00
parent 3b0ee78cf4
commit e3054967b4
3 changed files with 31 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ const configPath = require('xdg').basedir.configPath('switchmon/config.json');
const defaults = {
postCmd: undefined,
profiles: {},
};
let config = Object.assign({}, defaults);