with ls
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-10-31 22:03:50 +01:00
parent c990e50622
commit f62519e9cd
2 changed files with 27 additions and 1 deletions

23
pkg/cli/templatecmd/ls.go Normal file
View File

@@ -0,0 +1,23 @@
package templatecmd
import (
"fmt"
"github.com/spf13/cobra"
)
var templates = []string{"docker", "gobin_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
},
}
}