Skip to content

Commit 3b68934

Browse files
lemoragechardoncs
authored andcommitted
feat: create standalone CLI for cocoindex (cocoindex-io#485)
* feat(flow): update text label to handle empty lines instead of color style * feat: update to use standalone cocoindex cli * feat: pass in `<module_path>:<flow_name>` directly in new CLI * feat: only show relevant flows given ls targets * feat: add function to parse app target and warn on flow name usage * feat: add support for loading dot-env files * feat: use `find_dotenv` for better path resolution
1 parent 28f654a commit 3b68934

File tree

4 files changed

+309
-119
lines changed

4 files changed

+309
-119
lines changed

pyproject.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ description = "With CocoIndex, users declare the transformation, CocoIndex creat
99
authors = [{ name = "CocoIndex", email = "cocoindex.io@gmail.com" }]
1010
readme = "README.md"
1111
requires-python = ">=3.11"
12-
dependencies = ["sentence-transformers>=3.3.1", "click>=8.1.8", "rich>=14.0.0"]
12+
dependencies = ["sentence-transformers>=3.3.1", "click>=8.1.8", "rich>=14.0.0", "python-dotenv>=1.1.0"]
1313
license = "Apache-2.0"
1414
urls = { Homepage = "https://cocoindex.io/" }
1515

16+
[project.scripts]
17+
cocoindex = "cocoindex.cli:cli"
18+
1619
[tool.maturin]
1720
bindings = "pyo3"
1821
python-source = "python"

0 commit comments

Comments
 (0)