project

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GuessAppName added in v0.2.0

func GuessAppName() *string

func ProjectInit

func ProjectInit(options InitOptions, resources fs.FS) ([]string, error)

Types

type InitOptions

type InitOptions struct {
	DestinationFolder string
	DefaultBranch     string
	PipelineType      string
	Repository        string
	AppName           string
	ProjectDirectory  string
}

type Project

type Project struct {
	Name                  string
	Version               string
	Directory             string
	RuntimeVersion        string
	DefaultRuntimeVersion string
	Resources             fs.FS
}

func New

func New(name string, directory string, runtimeVersion string, version string, resources fs.FS) Project

func (Project) Dockerfile

func (proj Project) Dockerfile() ([]byte, error)

func (Project) NodeInstallCommand

func (proj Project) NodeInstallCommand() string

type ProjectType

type ProjectType string
const (
	NodeProject ProjectType = "node"
	GoProject   ProjectType = "go"
)

Jump to

Keyboard shortcuts

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