Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions openviking/cli.py → openviking_cli/rust_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ def main():
"""
# 1. 检查 Wheel 自带(不导入 openviking,避免额外开销)
try:
# __file__ is openviking/cli.py, so parent is openviking directory
package_dir = Path(__file__).parent
# __file__ is openviking_cli/rust_cli.py, so parent is openviking_cli directory
package_dir = Path(__file__).parent.parent / "openviking"
package_bin = package_dir / "bin"
for binary_name in ["ov", "ov.exe"]:
binary = package_bin / binary_name
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,13 @@ eval = [

[project.urls]
Homepage = "https://github.com/volcengine/openviking"
Documentation = "https://openviking.readthedocs.io"
Documentation = "https://openviking.ai"
Repository = "https://github.com/volcengine/openviking"
Issues = "https://github.com/volcengine/openviking/issues"

[project.scripts]
ov = "openviking.cli:main" # Rust CLI 入口(极简包装器)
# openviking = "openviking_cli.cli.main:app" # 可选:保留或移除
ov = "openviking_cli.rust_cli:main" # Rust CLI 入口(极简包装器)
openviking = "openviking_cli.rust_cli:main" # Rust CLI 入口(放弃 python CLI)
openviking-server = "openviking.server.bootstrap:main"

[tool.setuptools_scm]
Expand Down
Loading