Skip to content

Commit 4a035ce

Browse files
Merge pull request #2 from dotcommander/feat/version-flag
docs: add version flag documentation
2 parents b14cae9 + 3220766 commit 4a035ce

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

CLAUDE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
88
# Build and symlink to ~/go/bin
99
go build -o cclint . && ln -sf $(pwd)/cclint ~/go/bin/cclint
1010

11+
# Build with version override
12+
go build -ldflags "-X github.com/dotcommander/cclint/cmd.Version=1.0.0" -o cclint .
13+
14+
# Version
15+
cclint --version # show version (defaults to "dev")
16+
cclint -V # short form
17+
1118
# Run linter (defaults to ~/.claude)
1219
cclint # lint all component types
1320
cclint agents # lint only agents

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ export PATH=$PATH:~/go/bin
3737
git clone https://github.com/dotcommander/cclint.git && cd cclint
3838
go build -o cclint .
3939
ln -sf $(pwd)/cclint ~/go/bin/cclint
40+
41+
# Or build with a specific version
42+
go build -ldflags "-X github.com/dotcommander/cclint/cmd.Version=1.0.0" -o cclint .
4043
```
4144

4245
## Quick Start
@@ -70,6 +73,10 @@ cclint context # Lint CLAUDE.md files
7073
### Common Options
7174

7275
```bash
76+
# Show version
77+
cclint --version
78+
cclint -V
79+
7380
# Project root (auto-detected by default)
7481
cclint --root ~/my-project agents
7582

0 commit comments

Comments
 (0)