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")
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
var templates = []string{"docker", "gobin_default"}
|
||||
var templates = []string{"docker", "gobin_default", "default"}
|
||||
|
||||
func NewLsCmd() *cobra.Command {
|
||||
return &cobra.Command{
|
||||
|
4
pkg/cli/templatecmd/templates/default/.drone.yml
Normal file
4
pkg/cli/templatecmd/templates/default/.drone.yml
Normal file
@@ -0,0 +1,4 @@
|
||||
kind: template
|
||||
load: bust_default_template.yaml
|
||||
name: [[.Name]]
|
||||
data: {}
|
Reference in New Issue
Block a user