(fs *flag.FlagSet)
| 255 | } |
| 256 | |
| 257 | func printBlastRadiusUsage(fs *flag.FlagSet) { |
| 258 | out := fs.Output() |
| 259 | if out == nil { |
| 260 | out = os.Stderr |
| 261 | } |
| 262 | |
| 263 | fmt.Fprintln(out, "codemap blast-radius - Build a compact, bounded blast-radius bundle") |
| 264 | fmt.Fprintln(out) |
| 265 | fmt.Fprintln(out, "Usage:") |
| 266 | fmt.Fprintln(out, " codemap blast-radius [--json|--markdown|--text] [--ref <base-ref>] [path]") |
| 267 | fmt.Fprintln(out) |
| 268 | fmt.Fprintln(out, "Examples:") |
| 269 | fmt.Fprintln(out, " codemap blast-radius --ref main .") |
| 270 | fmt.Fprintln(out, " codemap blast-radius --json --ref develop /path/to/repo") |
| 271 | fmt.Fprintln(out) |
| 272 | fmt.Fprintln(out, "Flags:") |
| 273 | fs.PrintDefaults() |
| 274 | fmt.Fprintln(out) |
| 275 | fmt.Fprintln(out, "Environment overrides:") |
| 276 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_TOTAL_CHARS") |
| 277 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_CHANGED_FILES") |
| 278 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_AFFECTED") |
| 279 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_CONTEXT") |
| 280 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_SNIPPETS") |
| 281 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_SNIPPETS_PER_CHANGED") |
| 282 | fmt.Fprintln(out, " CODEMAP_BLAST_SNIPPET_RADIUS") |
| 283 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_SNIPPET_CHARS") |
| 284 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_DIFF_CHARS") |
| 285 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_DEPS_CHARS") |
| 286 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_IMPORTERS_CHARS") |
| 287 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_IMPORTER_FILES") |
| 288 | fmt.Fprintln(out, " CODEMAP_BLAST_MAX_IMPORTERS_PER_FILE") |
| 289 | } |
| 290 | |
| 291 | // parseBlastRadiusArgs parses flags that may appear before or after the single |
| 292 | // optional positional path. Go's flag package stops at the first non-flag |
no outgoing calls
no test coverage detected