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