UNPKG

@commonshost/cli

Version:

Commons Host command line interface

14 lines (11 loc) 336 B
const { read } = require('../options') module.exports.command = ['whoami'] module.exports.aliases = [] module.exports.desc = 'Show user information' module.exports.builder = { } module.exports.handler = async function handler (argv) { const { username } = await read() if (username === undefined) return console.log(username) }