aliases
Some checks failed
ci/woodpecker/push/woodpecker Pipeline was successful
continuous-integration/drone/tag Build is passing
ci/woodpecker/tag/woodpecker Pipeline failed

This commit is contained in:
abs3nt 2023-01-20 14:19:16 -08:00
parent 384231c3d3
commit 22fa7feab3
5 changed files with 11 additions and 9 deletions

View File

@ -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`,

View File

@ -12,6 +12,7 @@ func init() {
var nowPlayingCmd = &cobra.Command{
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) {

View File

@ -13,6 +13,7 @@ func init() {
var pauseCmd = &cobra.Command{
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)

View File

@ -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) {

View File

@ -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) {