UNPKG

fin

Version:

Developer CLI for Fin. Fin is the easiest way to launch your own SaaS.

19 lines (15 loc) 380 B
'use strict' const handleError = require('../handle-error') module.exports = (program, client) => { program .command('whoami') .description('Prints information about the current user') .action(async (arg, opts) => { program.requireAuthentication() try { console.log(client.user) } catch (err) { handleError(err) } }) }