project

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
}

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