#!/usr/bin/env bash

version="unknown"
edition="WSL/VM Edition"

if [ -r /etc/athenaos-release ]; then
  # shellcheck disable=SC1091
  . /etc/athenaos-release
  version="${ATHENAOS_VERSION:-${version}}"
  edition="${ATHENAOS_EDITION:-${edition}}"
elif [ -r /opt/athena/VERSION ]; then
  version="$(tr -d '[:space:]' </opt/athena/VERSION)"
fi

cat <<EOF
 █████╗ ████████╗██╗  ██╗███████╗███╗   ██╗ █████╗
██╔══██╗╚══██╔══╝██║  ██║██╔════╝████╗  ██║██╔══██╗
███████║   ██║   ███████║█████╗  ██╔██╗ ██║███████║
██╔══██║   ██║   ██╔══██║██╔══╝  ██║╚██╗██║██╔══██║
██║  ██║   ██║   ██║  ██║███████╗██║ ╚████║██║  ██║
╚═╝  ╚═╝   ╚═╝   ╚═╝  ╚═╝╚══════╝╚═╝  ╚═══╝╚═╝  ╚═╝

AthenaOS ${version} ${edition}
By AI. For AI.

Workspace: /workspace/projects
CLI:       athena version | athena self-test | athena new fastapi demo-api
EOF
