(w io.Writer, err error)
| 1338 | } |
| 1339 | |
| 1340 | func printAstGrepInstallHint(w io.Writer, err error) { |
| 1341 | fmt.Fprintf(w, "Error: %v\n", err) |
| 1342 | fmt.Fprintln(w) |
| 1343 | fmt.Fprintln(w, "The --deps feature requires ast-grep. Install it with:") |
| 1344 | fmt.Fprintln(w, " brew install ast-grep # macOS/Linux (installs as 'sg')") |
| 1345 | fmt.Fprintln(w, " cargo install ast-grep # installs as 'ast-grep'") |
| 1346 | fmt.Fprintln(w, " pipx install ast-grep # installs as 'ast-grep'") |
| 1347 | fmt.Fprintln(w, " python3 -m pip install ast-grep-cli") |
| 1348 | fmt.Fprintln(w) |
| 1349 | fmt.Fprintln(w, "Standard release tarballs ship codemap without the ast-grep binary.") |
| 1350 | fmt.Fprintln(w, "Use a codemap-full archive for self-contained CI installs, or install ast-grep separately.") |
| 1351 | } |
| 1352 | |
| 1353 | func stripANSI(text string) string { |
| 1354 | return ansiSequencePattern.ReplaceAllString(text, "") |
no outgoing calls
no test coverage detected