feat: add detailed --version output with build-time version injection

This commit is contained in:
siujamo committed 2026-06-22 13:42:52 +08:00
1 parent eb05e27655
commit 0a138f6f11
5 files changed
+35 -3

No files matched your search

+8 -1
View File
@@ -1,10 +1,17 @@
use clap::{Args, Parser, Subcommand};
const VERSION_TEXT: &str = concat!(
env!("CCSM_VERSION"),
" -- ",
env!("GIT_COMMIT_SHORT"),
" -- Claude Code Skill Manager\nby OnixByte"
);
#[derive(Parser)]
#[command(
name = "ccsm",
about = "Claude Code Skill Marketplace — discover and install skills from Git marketplaces",
version
version = VERSION_TEXT,
)]
pub struct Cli {
#[command(subcommand)]