chore(app): tool args cleanup
This commit is contained in:
parent
3a1cfa6c73
commit
3807364e73
3 changed files with 14 additions and 6 deletions
|
|
@ -639,7 +639,7 @@ ToolRegistry.register({
|
|||
ToolRegistry.register({
|
||||
name: "grep",
|
||||
render(props) {
|
||||
const args = []
|
||||
const args: string[] = []
|
||||
if (props.input.pattern) args.push("pattern=" + props.input.pattern)
|
||||
if (props.input.include) args.push("include=" + props.input.include)
|
||||
return (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue