runtimes

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRuntimeNotFound = errors.New("Unsupported project structure. Please inspect your directory structure to make sure it is a valid LeanEngine project.")

Functions

This section is empty.

Types

type Runtime

type Runtime struct {
	WorkDir     string
	ProjectPath string
	Name        string
	Exec        string
	Args        []string
	Envs        []string
	Remote      string
	Port        string
	// DeployFiles is the patterns for source code to deploy to the remote server
	DeployFiles filesPattern
	// Errors is the channel that receives the command's error result
	Errors chan error
	// contains filtered or unexported fields
}

Runtime stands for a language runtime

func DetectRuntime

func DetectRuntime(projectPath string) (*Runtime, error)

DetectRuntime returns the project's runtime

func (*Runtime) ArchiveUploadFiles

func (runtime *Runtime) ArchiveUploadFiles(archiveFile string, ignoreFilePath string) error

func (*Runtime) Run

func (runtime *Runtime) Run()

Run the project, and watch file changes

Jump to

Keyboard shortcuts

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