support

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TaskParams []string
)

Functions

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 Services

func Services() map[string]*Service

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 FindServices

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

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