This commit is contained in:
@@ -19,6 +19,9 @@ var docker embed.FS
|
||||
//go:embed templates/default/*
|
||||
var defaultFs embed.FS
|
||||
|
||||
//go:embed templates/rustbin_default/*
|
||||
var rustbinDefault embed.FS
|
||||
|
||||
func NewInitCmd() *cobra.Command {
|
||||
var (
|
||||
template string
|
||||
@@ -48,6 +51,11 @@ func NewInitCmd() *cobra.Command {
|
||||
return err
|
||||
}
|
||||
break
|
||||
case "rustbin_default":
|
||||
if err := initializeTemplate(&rustbinDefault, "rustbin_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