Versions in this module Expand all Collapse all v0 v0.1.0 Nov 22, 2022 Changes in this version + type CmdStatus int + const CmdDone + const CmdFailed + const CmdNotStarted + const CmdRunning + const CmdStopped + type Command struct + func NewCommand(conf *ProcConf) *Command + func (c *Command) Cancel() + func (c *Command) Error() error + func (c *Command) Name() string + func (c *Command) Run(ctx context.Context) error + func (c *Command) SetOutputs(wout, werr *PrefixWriter) + func (c *Command) Status() CmdStatus + type Conf struct + Procs []*ProcConf + func ReadConf(path string) (*Conf, error) + type Manager struct + func NewManager(conf *Conf) *Manager + func (m *Manager) Cancel() + func (m *Manager) Error() error + func (m *Manager) Run(ctx context.Context) error + func (m *Manager) SetOutputs(wout, werr io.Writer) + func (m *Manager) Shutdown() + type MapError map[string]error + func (m MapError) Error() string + type PrefixWriter struct + Color termenv.ANSIColor + Name string + Writer io.Writer + func NewPrefixWriter(name, outType string, nameWidth, color int, write io.Writer) *PrefixWriter + func (w *PrefixWriter) Close() error + func (w *PrefixWriter) Logf(s string, a ...any) error + func (w *PrefixWriter) Logln(s string) error + func (w *PrefixWriter) Write(p []byte) (int, error) + type ProcConf struct + Args []string + ClearEnvs bool + Cmd string + Cmds []string + Envs map[string]string + Name string + Restart RestartPolicy + Timeout time.Duration + WorkDir string + type RestartPolicy string + const RestartAlways + const RestartNever + const RestartOnFail + type SyncWriter struct + Writer io.Writer + func (w *SyncWriter) Write(p []byte) (int, error)