Added the scripting console command functionality to the tap command

Added both the `scripting` and `console` commands to the `proxy` command
Added a `scripting.console`, a boolean value indicating whether the `console`
functionality should be part of the `tap` and `proxy` commands
This commit is contained in:
Alon Girmonsky
2024-10-11 13:06:02 -07:00
parent ecc577ccc8
commit 41f36ba9c2
4 changed files with 46 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ type ScriptingConfig struct {
Env map[string]interface{} `yaml:"env" json:"env" default:"{}"`
Source string `yaml:"source" json:"source" default:""`
WatchScripts bool `yaml:"watchScripts" json:"watchScripts" default:"true"`
Console bool `yaml:"console" json:"console" default:"true"`
}
func (config *ScriptingConfig) GetScripts() (scripts []*misc.Script, err error) {