package commands import ( "fmt" ) type ReplaceScene struct { Match string `json:"match"` SceneName string `json:"sceneName"` } func (c ReplaceScene) CommandDescription() string { return fmt.Sprintf("ReplaceScene(%v, %s)", c.Match, c.SceneName) } type ClearScene struct { Match string `json:"match"` } func (c ClearScene) CommandDescription() string { return fmt.Sprintf("ClearScene(%v)", c.Match) }