Update example file with json commands

This commit is contained in:
2025-12-19 11:30:38 +01:00
parent 09cdc91761
commit b309e3e6f0
3 changed files with 138 additions and 22 deletions

View File

@@ -450,7 +450,7 @@ func LoadCommandsFromTomlFile(tomlFileData []byte) ([]ModifyCommand, map[string]
// TOML structure for commands array and top-level modifiers
var tomlData struct {
Modifiers map[string]interface{} `toml:"modifiers,omitempty"`
Commands []ModifyCommand `toml:"commands"`
Commands []ModifyCommand `toml:"commands"`
// Also support direct array without wrapper
DirectCommands []ModifyCommand `toml:"-"`
}