support

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskParams []string
)

Functions

func Environ added in v0.3.7

func Environ(dir string, env ...string) []string

func ExpandPath

func ExpandPath(path string) (string, error)

func FileExists

func FileExists(f string) bool

func IsYaml

func IsYaml(f string) bool

func LoadYaml

func LoadYaml(f string) error

load services from yaml

func RegisterService

func RegisterService(s *Service) error

register a service from lunafile

func ServicesKeys added in v0.3.5

func ServicesKeys() []string

func StringListContains

func StringListContains(list []string, s string) bool

Types

type Service

type Service struct {
	Kind  ServiceKind
	Name  string
	Dir   string
	Run   string // simple run
	Cmd   string // build
	Bin   string // built bin to run
	Dep   []string
	Watch bool
}

func AppendIfNotExists added in v0.3.5

func AppendIfNotExists(sl []*Service, n ...*Service) []*Service

func FindServices

func FindServices(names ...string) []*Service

func Services

func Services() []*Service

func ServicesSorted added in v0.3.5

func ServicesSorted() []*Service

func (*Service) Fields added in v0.3.5

func (s *Service) Fields() []string

func (*Service) Runnable

func (s *Service) Runnable() bool

func (*Service) SetKind

func (s *Service) SetKind(kind ServiceKind) error

enfore specific attributes

type ServiceKind

type ServiceKind int
const (
	GenericService ServiceKind = iota
	GoService
)

Jump to

Keyboard shortcuts

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