Add omarchycn CLI entry and cn command group

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QKxGW1raAWaqeU8WdHsMsp
This commit is contained in:
2026-08-24 18:29:01 -04:00
co-authored by Claude Fable 5
parent 4f06b2364f
commit d4002897e3
5 changed files with 46 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/bash
# omarchy:summary=Show the OmarchyCN version
# omarchy:examples=omarchycn version
set -euo pipefail
OMARCHY_BIN_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd)
ROOT="${OMARCHY_BIN_DIR%/bin}"
upstream=$(<"$ROOT/version")
release=$(<"$ROOT/cn/release")
echo "${upstream}-cn.${release}"