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