Implement cli version of z2m (#5034)

This commit is contained in:
John Doe authored and GitHub committed 2020-11-21 16:02:49 +01:00
1 parent 5f7553f624
commit c1f7ce7389
2 files changed
+7

No files matched your search

Executable
+4
View File
@@ -0,0 +1,4 @@
#!/usr/bin/env node
const path = require('path');
process.env['ZIGBEE2MQTT_DATA'] = process.env['ZIGBEE2MQTT_DATA'] || path.join(process.env['HOME'], '.z2m');
require('./index');
+3
View File
@@ -75,5 +75,8 @@
"collectCoverageFrom": [
"lib/**"
]
},
"bin": {
"zigbee2mqtt": "./cli.js"
}
}