add support for toggleoutput
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6cf0a11..8c3b4c7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,7 +2,7 @@
### 0.0.4
-* Add support for readcomments
+* Add support for readcomments, toggleoutput
### 0.0.3
diff --git a/MPD_COMMANDS.md b/MPD_COMMANDS.md
index 012a3b0..88595e8 100644
--- a/MPD_COMMANDS.md
+++ b/MPD_COMMANDS.md
@@ -514,6 +514,12 @@ Objects which may have stickers are addressed by their object type ("song" for s
> Shows information about all outputs.
+---
+`toggleoutput {ID} => fetch_nothing`
+
+> Turns an output on or off, depending on the current state.
+
+
### Reflection Commands
---
diff --git a/lib/mpd_client.rb b/lib/mpd_client.rb
index 41acfef..c72da85 100644
--- a/lib/mpd_client.rb
+++ b/lib/mpd_client.rb
@@ -102,6 +102,7 @@ COMMANDS = {
"disableoutput" => "fetch_nothing",
"enableoutput" => "fetch_nothing",
"outputs" => "fetch_outputs",
+ "toggleoutput" => "fetch_nothing",
# Reflection Commands
"config" => "fetch_item",
"commands" => "fetch_list",