Loading...
Loading...
Compare original and translation side by side
ovbashovbashviking://viking://
└── resources/
├── fastapi/ ← repo A
│ ├── fastapi/
│ │ ├── routing.py
│ │ └── dependencies/
│ └── tests/
└── requests/ ← repo B
├── requests/
└── tests/abstractoverviewviking://viking://
└── resources/
├── fastapi/ ← repo A
│ ├── fastapi/
│ │ ├── routing.py
│ │ └── dependencies/
│ └── tests/
└── requests/ ← repo B
├── requests/
└── tests/abstractoverview| Command | Use when | Example |
|---|---|---|
| You know the concept but not the exact code | "dependency injection", "rate limiting logic" |
| You know the exact keyword or symbol | function name, class name, error string |
| You want to enumerate files by pattern | all |
undefined| 命令 | 使用场景 | 示例 |
|---|---|---|
| 你知道概念但不知道具体代码 | "依赖注入", "限流逻辑" |
| 你知道确切的关键词或符号 | 函数名、类名、错误字符串 |
| 你想按模式枚举文件 | 所有 |
undefined
**Narrowing scope:** once you identify a relevant directory, pass it as `--uri` to restrict subsequent searches to that subtree — this is faster and more precise than searching the whole repo.
**缩小范围:** 一旦找到相关目录,将其作为`--uri`传入,以限制后续搜索到该子目录——这比搜索整个仓库更快、更精准。undefinedundefined
`abstract` / `overview` only work on directories. `read` only works on files.
`abstract`/`overview`仅适用于目录。`read`仅适用于文件。ov ls viking://resources/ # list all indexed repos
ov ls viking://resources/fastapi # list repo top-level contents
ov tree viking://resources/fastapi # full directory treeov ls viking://resources/ # 列出所有已索引的仓库
ov ls viking://resources/fastapi # 列出仓库顶层内容
ov tree viking://resources/fastapi # 完整目录树ov add-resource https://github.com/owner/repo --to viking://resources/ --timeout 300
ov add-resource /path/to/project --to viking://resources/ --timeout 300--timeoutov observer queue| Repo Size | Files | Est. Time |
|---|---|---|
| Small | < 100 | 2–5 min |
| Medium | 100–500 | 5–20 min |
| Large | 500+ | 20–60+ min |
ov add-resource https://github.com/owner/repo --to viking://resources/ --timeout 300
ov add-resource /path/to/project --to viking://resources/ --timeout 300--timeoutov observer queue| 仓库规模 | 文件数量 | 预估时间 |
|---|---|---|
| 小型 | < 100 | 2–5分钟 |
| 中型 | 100–500 | 5–20分钟 |
| 大型 | 500+ | 20–60+分钟 |
ov rm viking://resources/fastapi --recursiveov rm viking://resources/fastapi --recursivecommand not found: ovpip install openviking --upgrade --force-reinstallurl is requiredCLI_CONFIGmkdir -p ~/.openviking && echo '{"url": "http://localhost:1933"}' > ~/.openviking/ovcli.confCONNECTION_ERROR~/.openviking/ov.confopenviking-server --config ~/.openviking/ov.conf > /tmp/openviking.log 2>&1 &
for i in $(seq 1 10); do ov health 2>/dev/null && break; sleep 3; done~/.openviking/ov.confcommand not found: ovpip install openviking --upgrade --force-reinstallurl is requiredCLI_CONFIGmkdir -p ~/.openviking && echo '{"url": "http://localhost:1933"}' > ~/.openviking/ovcli.confCONNECTION_ERROR~/.openviking/ov.confopenviking-server --config ~/.openviking/ov.conf > /tmp/openviking.log 2>&1 &
for i in $(seq 1 10); do ov health 2>/dev/null && break; sleep 3; done~/.openviking/ov.confov help
ov <command> --help # e.g. ov find --helpov help
ov <command> --help # 例如 ov find --help