ast-search-python 1.1.2 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +1 -1
- package/README.md +1 -1
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -14,7 +14,7 @@ ast-search <query> --plugin ast-search-python [--dir <path>] [--format text|json
|
|
|
14
14
|
|------|-------|---------|-------------|
|
|
15
15
|
| `--plugin` | `-p` | — | Must be `ast-search-python` to activate Python support |
|
|
16
16
|
| `--dir` | `-d` | `cwd` | Root directory to search |
|
|
17
|
-
| `--format` | `-f` | `text` | Output format: `text`, `json`, or `
|
|
17
|
+
| `--format` | `-f` | `text` | Output format: `text`, `json`, `files`, or `count` |
|
|
18
18
|
| `--lang` | `-l` | all | Pass `python` to restrict to Python files only |
|
|
19
19
|
| `--context` | `-C` | `0` | Show N lines of context around each match (like `grep -C`) |
|
|
20
20
|
| `--ast` | — | off | Print Python AST for a snippet or `--file`; requires `--lang python` |
|
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ ast-search <query> --plugin ast-search-python [--dir <path>] [--format <fmt>] [-
|
|
|
35
35
|
| -------------- | -------------------------------------------------------------- | ----------- |
|
|
36
36
|
| `<query>` | Shorthand or tree-sitter S-expression (see Query Syntax below) | required |
|
|
37
37
|
| `-d, --dir` | Root directory to search | current dir |
|
|
38
|
-
| `-f, --format` | Output format: `text`, `json`, or `
|
|
38
|
+
| `-f, --format` | Output format: `text`, `json`, `files`, or `count` | `text` |
|
|
39
39
|
| `-l, --lang` | Restrict search to `python` only (useful in mixed-language repos) | all languages |
|
|
40
40
|
| `-p, --plugin` | `ast-search-python` | required |
|
|
41
41
|
| `-C, --context` | Show N lines of context around each match (like `grep -C`) | `0` |
|