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

@ -15,6 +15,7 @@ func init() {
var seekCmd = &cobra.Command{ var seekCmd = &cobra.Command{
Use: "seek {forward/backward/songposition in seconds}", Use: "seek {forward/backward/songposition in seconds}",
Short: "seek forward/backward or to a given second", Short: "seek forward/backward or to a given second",
Aliases: []string{"s"},
Args: cobra.MinimumNArgs(1), Args: cobra.MinimumNArgs(1),
Long: `Seeks forward or backward, or seeks to a given position in seconds`, Long: `Seeks forward or backward, or seeks to a given position in seconds`,
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {

View File

@ -15,6 +15,7 @@ func init() {
var volumeCmd = &cobra.Command{ var volumeCmd = &cobra.Command{
Use: "volume", Use: "volume",
Short: "sets the volume", Short: "sets the volume",
Aliases: []string{"v"},
Args: cobra.MinimumNArgs(1), 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`, 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 { RunE: func(cmd *cobra.Command, args []string) error {