From 20c383747ec40a69c3b6afe81d1f5383851e9619 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sun, 23 Feb 2020 20:34:13 +0000 Subject: [PATCH] Update README --- README.md | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 72 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6879185..10f3804 100644 --- a/README.md +++ b/README.md @@ -13,12 +13,13 @@ $ mv target/release/sonos-cli /usr/local/bin/sonos ## Usage ``` -sonos 0.1.0 +$ sonos help +sonos 0.2.0 Jordan Doyle Control your Sonos using the command line USAGE: - sonos-cli [OPTIONS] [json] + sonos -c [json] FLAGS: -h, --help Prints help information @@ -31,12 +32,73 @@ ARGS: Return back JSON serialised responses for programmatic use of the CLI SUBCOMMANDS: - help Prints this message or the help of the given subcommand(s) - info Shows information about the speaker - next Skip to the next track - previous Go back to the last track - rooms List all of your speakers - seek Seek to a specific timestamp on the current track - track Show the current track information - volume Get or set the volume of the speaker + help Prints this message or the help of the given subcommand(s) + info Shows information about the speaker + rooms List all of your speakers + seek Seek to a specific timestamp on the current track + track Commands to manipulate the tracklist + volume Get or set the volume of the speaker + +$ sonos track help +sonos-track +Commands to manipulate the tracklist + +USAGE: + sonos -c track [SUBCOMMAND] + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +SUBCOMMANDS: + help Prints this message or the help of the given subcommand(s) + list Get the list of tracks in the queue + next Skip to the next track + play Play a given track + prev Go back to the last track + +$ sonos track play help +sonos-track-play +Play a given track + +USAGE: + sonos track play [uri] [SUBCOMMAND] + +FLAGS: + -h, --help Prints help information + -V, --version Prints version information + +ARGS: + Queue position to skip to or a Sonos URI to play + +SUBCOMMANDS: + help Prints this message or the help of the given subcommand(s) + line-in Set the current speaker's input to the line-in + tv Set the current speaker's input to the SPDIF +``` + +``` +$ sonos -c "Kitchen" track list +1: Afghan Dan & BGM - Resurrection Business (Freestyle) (01:53) +2: The Notorious B.I.G. - Nasty Girl (feat. Diddy, Nelly, Jagged Edge & Avery Storm) [2007 Remaster] (04:46) +3: The Strokes - Juicebox (03:17) +... + +$ sonos -c "Kitchen" track play 2 + +$ sonos -c "Kitchen" seek 02:30 + +$ sonos -c "Kitchen" track +🎤 The Notorious B.I.G. +🎵 Nasty Girl (feat. Diddy, Nelly, Jagged Edge & Avery Storm) [2007 Remaster] +💿 Greatest Hits +⏱️ 02:31/04:46 [▇▇▇▇▇▇▇▇▇▇▇▇▇------------] + +$ sonos -c "Kitchen" track next + +$ sonos -c "Kitchen" track +🎤 The Strokes +🎵 Juicebox +💿 First Impressions Of Earth +⏱️ 00:01/03:17 [-------------------------] ``` -- libgit2 1.7.2