mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 05:29:53 +00:00
fix(core): Remove dead code and documentation related to the obsolete list tool. (#22672)
This commit is contained in:
parent
6bed7d469d
commit
d2ea6700aa
60 changed files with 37 additions and 516 deletions
|
|
@ -149,22 +149,6 @@ OpenCode で利用可能なすべての組み込みツールを次に示しま
|
|||
|
||||
`**/*.js` や `src/**/*.ts` などの glob パターンを使用してファイルを検索します。一致するファイルパスを変更時間順に並べて返します。
|
||||
|
||||
---
|
||||
|
||||
### list
|
||||
|
||||
指定されたパス内のファイルとディレクトリを一覧表示します。
|
||||
|
||||
```json title="opencode.json" {4}
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"permission": {
|
||||
"list": "allow"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
このツールはディレクトリの内容を一覧表示します。結果をフィルタリングするための glob パターンを受け入れます。
|
||||
|
||||
---
|
||||
|
||||
|
|
@ -341,7 +325,7 @@ MCP (Model Context Protocol) サーバーを使用すると、外部ツールと
|
|||
|
||||
## 内部動作
|
||||
|
||||
内部的には、`grep`、`glob`、`list` などのツールは内部で [ripgrep](https://github.com/BurntSushi/ripgrep) を使用します。デフォルトでは、ripgrep は `.gitignore` パターンを尊重します。つまり、`.gitignore` にリストされているファイルとディレクトリは検索とリストから除外されます。
|
||||
内部的には、`grep`、`glob` などのツールは内部で [ripgrep](https://github.com/BurntSushi/ripgrep) を使用します。デフォルトでは、ripgrep は `.gitignore` パターンを尊重します。つまり、`.gitignore` にリストされているファイルとディレクトリは検索とリストから除外されます。
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue