Aliases
This commit is contained in:
parent
d66fac3088
commit
cbaac58587
@ -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 {
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user