mirror of
https://github.com/alda-lang/alda.git
synced 2026-03-03 18:23:36 +01:00
19 lines
338 B
Go
19 lines
338 B
Go
package cmd
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"alda.io/client/model"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
var instrumentsCmd = &cobra.Command{
|
|
Use: "instruments",
|
|
Short: "Display the list of available instruments",
|
|
RunE: func(_ *cobra.Command, args []string) error {
|
|
fmt.Println(strings.Join(model.InstrumentsList(), "\n"))
|
|
return nil
|
|
},
|
|
}
|