project

package
v0.1.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdNew = &cobra.Command{
	Use:   "new",
	Short: "Create a service template",
	Long:  "Create a service project using the repository template. Example: kernel new helloworld",
	Run:   run,
}

CmdNew represents the new command.

Functions

This section is empty.

Types

type Project

type Project struct {
	Name string
	Path string
}

Project is a project template.

func (*Project) Add

func (p *Project) Add(ctx context.Context, dir string, layout string, branch string, mod string, pkgPath string, opts ScaffoldOptions) error

func (*Project) New

func (p *Project) New(ctx context.Context, dir string, layout string, branch string, opts ScaffoldOptions) error

New creates a project from a local layout or remote repo.

type ScaffoldOptions

type ScaffoldOptions struct {
	Profile           string
	Features          []string
	DisabledFeatures  []string
	DBDriver          string
	CacheDriver       string
	ObjectStoreDriver string
	AuthnProvider     string
	AuthzProvider     string
	KernelVersion     string
}

func (ScaffoldOptions) HasFeature

func (o ScaffoldOptions) HasFeature(feature string) bool

Directories

Path Synopsis
Package main is a reference handler template showing correct errorx usage.
Package main is a reference handler template showing correct errorx usage.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL