Improved README (#683)

* auto generate table of contents

* cspell check

* Added `single` alias to repeat mode `track`

* Updated command documentation

* Reformat command table
Removed the "alias" column since it takes up too much space.
This commit is contained in:
cyqsimon
2021-12-27 23:34:56 +08:00
committed by GitHub
parent fc0514d4aa
commit 17867685ab
2 changed files with 59 additions and 57 deletions

View File

@@ -370,7 +370,7 @@ pub fn parse(input: &str) -> Option<Vec<Command>> {
"repeat" => {
let mode = args.get(0).and_then(|mode| match *mode {
"list" | "playlist" | "queue" => Some(RepeatSetting::RepeatPlaylist),
"track" | "once" => Some(RepeatSetting::RepeatTrack),
"track" | "once" | "single" => Some(RepeatSetting::RepeatTrack),
"none" | "off" => Some(RepeatSetting::None),
_ => None,
});