Documentation
¶
Overview ¶
Package write implements the write tool: overwrite a file inside the workspace root.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tool ¶
type Tool struct {
// contains filtered or unexported fields
}
Tool is the write tool.
func NewWithFilter ¶
NewWithFilter constructs the write tool with an optional path regex. When pathRe is nil, all paths are allowed (existing behavior). When pathRe is non-nil, writes to paths that do NOT match the regex (relative to root) are rejected with a clear error and no file is touched.
Click to show internal directories.
Click to hide internal directories.