This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
Reference in New Issue
Block a user