flagon-io/hello

public

Greets people from the command line. The sample repository for g1t.

Commit

CI: fail when a parsed flag is missing from the README

g1t agentand Claude Sonnet 5.5committed Parent6d3fd45Browse files
1 file+10−00/1 viewed
+10−0
2424 run: cargo fmt --check
2525 - name: Lints
2626 run: cargo clippy --all-targets -- -D warnings
27+ - name: Every flag is documented
28+ run: |
29+ missing=""
30+ for flag in $(grep -o 'arg == "-[^"]*"' src/lib.rs | cut -d'"' -f2 | sort -u); do
31+ grep '^|' README.md | grep -qF -- "$flag" || missing="$missing $flag"
32+ done
33+ if [ -n "$missing" ]; then
34+ echo "Flags missing from the README options table:$missing"
35+ exit 1
36+ fi
2737 - name: Tests
2838 run: cargo test