Metadata-Version: 2.1
Name: tree-sitter-builder
Version: 0.1.1
Summary: 
License: Apache-2.0
Author: Naoya Yamashita
Author-email: conao3@gmail.com
Requires-Python: >=3.11,<4.0
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: pyyaml (>=6.0.1,<7.0.0)
Requires-Dist: tree-sitter (>=0.20.1,<0.21.0)
Description-Content-Type: text/markdown

# python-tree-sitter-builder

## Install

```bash
poetry install
ln -s $(poetry run which tree-sitter-builder) ~/.local/bin/
```

## Usage

### build

Clone specified repository and build tree-sitter language parser.

If it contains `://`, it assumes that the entire git URL has been specified. Otherwise, assume it is GitHub and clone the repository.

```bash
tree-sitter-builder build conao3/tree-sitter-sql
```

Clone into `$XDG_DATA_HOME/tree-sitter-builder/repos/*`.

If you omit the repository name, tree-sitter-builder will build all repositories.

### dist

Returns the path to builded parser shared object.

```bash
$ python-tree-sitter-builder % tree-sitter-builder dist conao3/tree-sitter-sql
/Users/conao/Library/Application Support/tree-sitter-builder/build/conao3__tree-sitter-sql.so
```

### update

Update all repositories.

```bash
tree-sitter-builder update
```

### list

List all repositories.

```bash
tree-sitter-builder list
```

### remove

Remove specified repository.

```bash
tree-sitter-builder remove conao3/tree-sitter-sql
```

### clean

Remove all build files.

```bash
tree-sitter-builder clean
```

