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

This commit is contained in:
2022-10-31 22:35:36 +01:00
parent aa7036f10f
commit c6c42c4d08
6 changed files with 56 additions and 5 deletions

View File

@@ -16,6 +16,9 @@ var gobinDefault embed.FS
//go:embed templates/docker/*
var docker embed.FS
//go:embed templates/default/*
var defaultFs embed.FS
func NewInitCmd() *cobra.Command {
var (
template string
@@ -40,6 +43,11 @@ func NewInitCmd() *cobra.Command {
return err
}
break
case "default":
if err := initializeTemplate(&defaultFs, "default", name); err != nil {
return err
}
break
default:
return errors.New("could not find matching templates, please run [bust template ls] instead")
}