Commit 18993ed2235fcf5ea0576cf49b7164315c79c8b2

Anton Maminov 2013-11-06T12:37:59

add support for toggleoutput

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",