1
0
licensmith/cmd/list.go

24 lines
390 B
Go
Raw Normal View History

package cmd
import (
"fmt"
"strings"
"git.brono.cloud/wzykubek/licensmith/internal"
"github.com/spf13/cobra"
)
func init() {
rootCmd.AddCommand(listCmd)
}
var listCmd = &cobra.Command{
Use: "list",
Short: "List available licenses",
Run: func(cmd *cobra.Command, args []string) {
tmplList := internal.ListTemplates()
fmt.Println(strings.Join(tmplList, ", "))
},
}