bust/pkg/cli/templatecmd/ls.go
kjuulh c6c42c4d08
All checks were successful
continuous-integration/drone/push Build is passing
with default
2022-10-31 22:35:42 +01:00

24 lines
347 B
Go

package templatecmd
import (
"fmt"
"github.com/spf13/cobra"
)
var templates = []string{"docker", "gobin_default", "default"}
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
},
}
}