Loading...
Loading...
Compare original and translation side by side
brew install yoanbernabeu/tap/grepaibrew install yoanbernabeu/tap/grepaicurl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | shcurl -sSL https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.sh | shirm https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.ps1 | iexgrepai versionirm https://raw.githubusercontent.com/yoanbernabeu/grepai/main/install.ps1 | iexgrepai versionbrew install ollama
ollama serve &
ollama pull nomic-embed-textbrew install ollama
ollama serve &
ollama pull nomic-embed-textcurl -fsSL https://ollama.com/install.sh | sh
ollama serve &
ollama pull nomic-embed-textcurl http://localhost:11434/api/tagscurl -fsSL https://ollama.com/install.sh | sh
ollama serve &
ollama pull nomic-embed-textcurl http://localhost:11434/api/tagscd /path/to/your/project
grepai init.grepai/config.yamlnomic-embed-textcd /path/to/your/project
grepai init.grepai/config.yamlnomic-embed-textgrepai watch.gitignore.grepai/index.gob🔍 GrepAI Watch
Scanning files...
Found 245 files
Processing chunks...
████████████████████████████████ 100%
Indexed 1,234 chunks
Watching for changes...grepai watch.gitignore.grepai/index.gob🔍 GrepAI Watch
Scanning files...
Found 245 files
Processing chunks...
████████████████████████████████ 100%
Indexed 1,234 chunks
Watching for changes...undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedScore: 0.89 | src/auth/middleware.go:15-45
──────────────────────────────────────────
func AuthMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
token := c.GetHeader("Authorization")
if token == "" {
c.AbortWithStatus(401)
return
}
// Validate JWT token...
}
}
Score: 0.82 | src/auth/jwt.go:23-55
──────────────────────────────────────────
func ValidateToken(tokenString string) (*Claims, error) {
token, err := jwt.Parse(tokenString, func(t *jwt.Token) (interface{}, error) {
return []byte(secretKey), nil
})
// ...
}Score: 0.89 | src/auth/middleware.go:15-45
──────────────────────────────────────────
func AuthMiddleware() gin.HandlerFunc {
return func(c *gin.Context) {
token := c.GetHeader("Authorization")
if token == "" {
c.AbortWithStatus(401)
return
}
// Validate JWT token...
}
}
Score: 0.82 | src/auth/jwt.go:23-55
──────────────────────────────────────────
func ValidateToken(tokenString string) (*Claims, error) {
token, err := jwt.Parse(tokenString, func(t *jwt.Token) (interface{}, error) {
return []byte(secretKey), nil
})
// ...
}undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined| Command | Purpose |
|---|---|
| Initialize project config |
| Start indexing daemon |
| Run daemon in background |
| Check daemon status |
| Stop daemon |
| Semantic search |
| JSON output |
| Find callers |
| Find callees |
| Index statistics |
| Show version |
| 命令 | 用途 |
|---|---|
| 初始化项目配置 |
| 启动索引守护进程 |
| 后台运行守护进程 |
| 检查守护进程状态 |
| 停止守护进程 |
| 语义搜索 |
| 输出JSON格式结果 |
| 查找调用方 |
| 查找被调用方 |
| 查看索引统计信息 |
| 显示版本信息 |
grepai-embeddings-*grepai-storage-*grepai-search-*grepai-mcp-*grepai-embeddings-*grepai-storage-*grepai-search-*grepai-mcp-*✅ GrepAI Quickstart Complete
Project: /path/to/your/project
Files indexed: 245
Chunks created: 1,234
Embedder: Ollama (nomic-embed-text)
Storage: GOB (local file)
Try these searches:
- grepai search "main entry point"
- grepai search "database connection"
- grepai search "error handling"✅ GrepAI Quickstart Complete
Project: /path/to/your/project
Files indexed: 245
Chunks created: 1,234
Embedder: Ollama (nomic-embed-text)
Storage: GOB (local file)
Try these searches:
- grepai search "main entry point"
- grepai search "database connection"
- grepai search "error handling"