docs: def whoami(anchore_config):
      """
      Show user data for current user if available
      :param anchore_config:
      :return:
      """
      ecode = 0
      try:
          aa = contexts['anchore_auth']
          if aa and 'username' in aa and 'password' in aa:
              info = {'Current user': aa['user_info'] if aa['user_info'] else 'anonymous'}
  
              anchore_print(info, do_formatting=True)
          else:
              anchore_print_err('No anchore auth context found. Cannot get user info. Try logging in first')
              ecode = 1
  
      except Exception as err:
          anchore_print_err('Cannot get user info')
          ecode = 1
  
      sys.exit(ecode)