diff options
| author | Jokler <jokler@protonmail.com> | 2020-02-21 22:47:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-21 22:47:26 +0100 |
| commit | 00b60b8f210b93a5d6cbdde2bc98feff2f2ec1ca (patch) | |
| tree | fc2102295e2b3f0fd5db6f4d2ed811a6a0e87ffd /src/command.rs | |
| parent | 8e708b65365aeb0591aee39d2ffb7c59239ffc3f (diff) | |
| parent | d9bfc97b599af4e4e96ae403df8287a533223e32 (diff) | |
| download | pokebot-00b60b8f210b93a5d6cbdde2bc98feff2f2ec1ca.tar.gz pokebot-00b60b8f210b93a5d6cbdde2bc98feff2f2ec1ca.zip | |
Merge pull request #34 from Mavulp/branches/fkaa/Seeking
Add seeking to audio player
Diffstat (limited to 'src/command.rs')
| -rw-r--r-- | src/command.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/command.rs b/src/command.rs index 3a39290..db22028 100644 --- a/src/command.rs +++ b/src/command.rs @@ -9,7 +9,8 @@ use structopt::StructOpt; DisableHelpFlags, DisableVersion, ColorNever, - NoBinaryName]",) + NoBinaryName, + AllowLeadingHyphen]",) )] pub enum Command { /// Adds url to playlist @@ -18,6 +19,8 @@ pub enum Command { Play, /// Pauses audio playback Pause, + /// Seeks by a specified amount + Seek { amount: String }, /// Stops audio playback Stop, /// Switches to the next queue entry |
