const hapi = require("./hapi");
const {auth: {host}} = require("./config");

module.exports = yargs => yargs.command({
  command: 'whoami',
  desc: 'Who am i?',
  handler: hapi(async api => Object.assign(await api.auth.whoami(), {host: host()})),
})
