aliases
This commit is contained in:
parent
384231c3d3
commit
22fa7feab3
@ -14,7 +14,7 @@ func init() {
|
||||
|
||||
var nextCmd = &cobra.Command{
|
||||
Use: "next {amount}",
|
||||
Aliases: []string{"n"},
|
||||
Aliases: []string{"n", "skip"},
|
||||
Args: cobra.MatchAll(cobra.RangeArgs(0, 1)),
|
||||
Short: "Skip to next song or skip the specified number of tracks",
|
||||
Long: `Skip to next song of skip the specified number of tracks`,
|
||||
|
@ -11,9 +11,10 @@ func init() {
|
||||
}
|
||||
|
||||
var nowPlayingCmd = &cobra.Command{
|
||||
Use: "nowplaying",
|
||||
Short: "Shows song and artist of currently playing song",
|
||||
Long: `Shows song and artist of currently playing song, useful for scripting`,
|
||||
Use: "nowplaying",
|
||||
Aliases: []string{"now"},
|
||||
Short: "Shows song and artist of currently playing song",
|
||||
Long: `Shows song and artist of currently playing song, useful for scripting`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
commands.NowPlaying(ctx, client)
|
||||
},
|
||||
|
@ -11,9 +11,10 @@ func init() {
|
||||
}
|
||||
|
||||
var pauseCmd = &cobra.Command{
|
||||
Use: "pause",
|
||||
Short: "Pauses spotify",
|
||||
Long: `Pauses currently playing song on spotify`,
|
||||
Use: "pause",
|
||||
Short: "Pauses spotify",
|
||||
Aliases: []string{"pa"},
|
||||
Long: `Pauses currently playing song on spotify`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
commands.Pause(ctx, client)
|
||||
},
|
||||
|
@ -12,7 +12,7 @@ func init() {
|
||||
|
||||
var playCmd = &cobra.Command{
|
||||
Use: "play",
|
||||
Aliases: []string{"p"},
|
||||
Aliases: []string{"pl", "start", "s"},
|
||||
Short: "Plays spotify",
|
||||
Long: `Plays queued song on spotify, uses last used device and activates it if needed`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
@ -12,7 +12,7 @@ func init() {
|
||||
|
||||
var previousCmd = &cobra.Command{
|
||||
Use: "previous",
|
||||
Aliases: []string{"b"},
|
||||
Aliases: []string{"b", "prev", "back"},
|
||||
Short: "goes to previous song",
|
||||
Long: `if song is playing it will start over, if close to begining of song it will go to previous song`,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
|
Loading…
Reference in New Issue
Block a user