manifest

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.7.0

func Create(projectPath string) error

Create writes a default project manifest in the specified path

func ExistsIn added in v0.7.0

func ExistsIn(path string) bool

Load returns a Manifest struct populated from a manifest file

Types

type Command

type Command struct {
	Run         string `yaml:"run"`
	Description string `yaml:"desc"`
}

Command is a representation of the `command` section of a manifest

type Manifest

type Manifest struct {
	Env      map[string]string      `yaml:"env"`
	Up       []interface{}          `yaml:"up"`
	Commands map[string]interface{} `yaml:"commands"`
	Open     map[string]string      `yaml:"open"`
}

Manifest is a representation of the project manifest

func Load

func Load(path string) (*Manifest, error)

Load returns a Manifest struct populated from a manifest file

func (*Manifest) GetCommands added in v0.11.0

func (m *Manifest) GetCommands() map[string]*Command

Jump to

Keyboard shortcuts

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