@gameroom/cli
Version:
A command line tool for Gameroom
17 lines (15 loc) • 531 B
JavaScript
const { existsSync, unlinkSync, writeFileSync } = require('fs'),
{ homedir } = require('os'),
{ join } = require('path'),
{ grGreen } = require('../helpers'),
path = join(homedir(), '.gameroom', 'lock')
module.exports = (options) => {
// if (options._source.includes('unlock')) return
// if (existsSync(path)) {
// console.log(`${grGreen('gameroom')} is already running`)
// process.exit()
// } else {
// writeFileSync(path)
// process.on('exit', () => existsSync(path) && unlinkSync(path))
// }
}