UNPKG

particle-cli

Version:

Simple Node commandline application for working with your Particle devices and using the Particle Cloud

10 lines (8 loc) 258 B
module.exports = ({ commandProcessor, root }) => { commandProcessor.createCommand(root, 'whoami', 'prints signed-in username', { handler: () => { const WhoAmICommand = require('../cmd/whoami'); return new WhoAmICommand().getUsername(); } }); };