MCPcopy Create free account
hub / github.com/JordanCoin/codemap / printAstGrepInstallHint

Function printAstGrepInstallHint

blast_radius.go:1340–1351  ·  view source on GitHub ↗
(w io.Writer, err error)

Source from the content-addressed store, hash-verified

1338}
1339
1340func 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
1353func stripANSI(text string) string {
1354 return ansiSequencePattern.ReplaceAllString(text, "")

Callers 2

runDepsModeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected