summaryrefslogtreecommitdiff
path: root/src/rhctl/audio_switch_command.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/rhctl/audio_switch_command.go')
-rw-r--r--src/rhctl/audio_switch_command.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/rhctl/audio_switch_command.go b/src/rhctl/audio_switch_command.go
index 3c67b3c..1c2e2fb 100644
--- a/src/rhctl/audio_switch_command.go
+++ b/src/rhctl/audio_switch_command.go
@@ -76,6 +76,10 @@ func (i *SwitchInputNum) FromString(str string) error {
return nil
}
+func (i *SwitchInputNum) UnmarshalTOML(data []byte) error {
+ return i.FromString(string(data))
+}
+
type SwitchOutputNum uint
func (o SwitchOutputNum) String() string {