Skip to content

Commit 1278fc6

Browse files
authored
Merge pull request #191 from rumpl/v2-post-edit
Put the post edit config to the lastest config
2 parents 88b9aa0 + 3954d2a commit 1278fc6

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

pkg/config/v2/types.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ type ScriptShellToolConfig struct {
6161
WorkingDir string `json:"working_dir,omitempty" yaml:"working_dir,omitempty"`
6262
}
6363

64+
// PostEditConfig represents a post-edit command configuration
65+
type PostEditConfig struct {
66+
Path string `json:"path" yaml:"path"`
67+
Cmd string `json:"cmd" yaml:"cmd"`
68+
}
69+
6470
// Toolset represents a tool configuration
6571
type Toolset struct {
6672
Type string `json:"type,omitempty" yaml:"type,omitempty"`
@@ -79,6 +85,9 @@ type Toolset struct {
7985

8086
// For the script tool
8187
Shell map[string]ScriptShellToolConfig `json:"shell,omitempty" yaml:"shell,omitempty"`
88+
89+
// For the filesystem tool - post-edit commands
90+
PostEdit []PostEditConfig `json:"post_edit,omitempty" yaml:"post_edit,omitempty"`
8291
}
8392

8493
// Ensure that either Command, Remote or Ref is set, but not all empty

0 commit comments

Comments
 (0)