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

This commit is contained in:
2022-11-06 00:39:03 +01:00
parent c6c42c4d08
commit 6c885ec33c
17 changed files with 312 additions and 3 deletions

View File

@@ -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")
}