code: def cli(obj, show_userinfo):
      
      client = obj['client']
      userinfo = client.userinfo()
      if show_userinfo:
          for k, v in userinfo.items():
              if isinstance(v, list):
                  v = ', '.join(v)
              click.echo('{:20}: {}'.format(k, v))
      else:
          click.echo(userinfo['preferred_username'])
docs: Display logged in user or full userinfo.