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`,
|
||||||
|
@ -12,6 +12,7 @@ func init() {
|
|||||||
|
|
||||||
var nowPlayingCmd = &cobra.Command{
|
var nowPlayingCmd = &cobra.Command{
|
||||||
Use: "nowplaying",
|
Use: "nowplaying",
|
||||||
|
Aliases: []string{"now"},
|
||||||
Short: "Shows song and artist of currently playing song",
|
Short: "Shows song and artist of currently playing song",
|
||||||
Long: `Shows song and artist of currently playing song, useful for scripting`,
|
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) {
|
||||||
|
@ -13,6 +13,7 @@ func init() {
|
|||||||
var pauseCmd = &cobra.Command{
|
var pauseCmd = &cobra.Command{
|
||||||
Use: "pause",
|
Use: "pause",
|
||||||
Short: "Pauses spotify",
|
Short: "Pauses spotify",
|
||||||
|
Aliases: []string{"pa"},
|
||||||
Long: `Pauses currently playing song on spotify`,
|
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