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.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/rhctl/audio_switch_command.go b/src/rhctl/audio_switch_command.go
index b71cfbd..7c9e4b6 100644
--- a/src/rhctl/audio_switch_command.go
+++ b/src/rhctl/audio_switch_command.go
@@ -398,6 +398,36 @@ func SwitchCommandParseOC(args []string) (cmdstr SwitchCmdString, cmdargs []inte
return
}
+func SwitchCommandHelp() []string {
+ return []string{
+ "state <state-type>",
+ " request status update. The following types are allowed:",
+ " - audio audio input/ouput routings",
+ " - gpi state of general purpose inputs",
+ " - oc state of open-collector outputs",
+ " - relay state of relay outputs",
+ " - silence output silence monitor state",
+ "",
+ "out <num> <cmd> [ <input> ]",
+ " change audio input/output routings.",
+ " <num> specifies the audio output: one of 1, 2, all ",
+ " Commands:",
+ " - apply <input> simulate select button press",
+ " - add <input> add <input> to output routing",
+ " - remove <input> remove <input> from output routing",
+ " - up <input> fade up <input> (only allowed for output 1)",
+ " - down <input> fade down <input> (only allowed for output 1)",
+ " - mute [ <input> ] mute <input> or whole <output>",
+ "",
+ "relay <num> (latch|unlatch|pulse)",
+ " Control open-collector outputs.",
+ "",
+ "oc <num> (latch|unlatch|pulse)",
+ " Control relay outputs.",
+ "",
+ }
+}
+
func NewSwitchCommandFromStrings(cmd string, args ...string) (c *SwitchCommand, err error) {
c = &SwitchCommand{}
switch strings.ToLower(cmd) {