This commit is contained in:
jjohnstondev 2023-01-14 23:04:48 -08:00
parent d66fac3088
commit cbaac58587
2 changed files with 10 additions and 8 deletions

View File

@ -13,10 +13,11 @@ func init() {
}
var seekCmd = &cobra.Command{
Use: "seek {forward/backward/songposition in seconds}",
Short: "seek forward/backward or to a given second",
Args: cobra.MinimumNArgs(1),
Long: `Seeks forward or backward, or seeks to a given position in seconds`,
Use: "seek {forward/backward/songposition in seconds}",
Short: "seek forward/backward or to a given second",
Aliases: []string{"s"},
Args: cobra.MinimumNArgs(1),
Long: `Seeks forward or backward, or seeks to a given position in seconds`,
RunE: func(cmd *cobra.Command, args []string) error {
if args[0] == "forward" || args[0] == "f" {
err := commands.Seek(ctx, client, true)

View File

@ -13,10 +13,11 @@ func init() {
}
var volumeCmd = &cobra.Command{
Use: "volume",
Short: "sets the volume",
Args: cobra.MinimumNArgs(1),
Long: `Sets the volume to the given percent [0-100] or increases/decreases by 5 percent if you say up or down`,
Use: "volume",
Short: "sets the volume",
Aliases: []string{"v"},
Args: cobra.MinimumNArgs(1),
Long: `Sets the volume to the given percent [0-100] or increases/decreases by 5 percent if you say up or down`,
RunE: func(cmd *cobra.Command, args []string) error {
if args[0] == "up" {
err := commands.ChangeVolume(ctx, client, 5)