bust/pkg/cli/templatecmd/ls.go

24 lines
347 B
Go
Raw Normal View History

2022-10-31 22:03:50 +01:00
package templatecmd
import (
"fmt"
"github.com/spf13/cobra"
)
2022-10-31 22:35:36 +01:00
var templates = []string{"docker", "gobin_default", "default"}
2022-10-31 22:03:50 +01:00
func NewLsCmd() *cobra.Command {
return &cobra.Command{
Use: "ls",
RunE: func(cmd *cobra.Command, args []string) error {
for _, t := range templates {
fmt.Printf("%s\n", t)
}
return nil
},
}
}