MCPcopy
hub / github.com/DarthSim/overmind / AbsRoot

Method AbsRoot

start/handler.go:54–64  ·  view source on GitHub ↗

AbsRoot returns absolute path to the working directory

()

Source from the content-addressed store, hash-verified

52
53// AbsRoot returns absolute path to the working directory
54func (h *Handler) AbsRoot() (string, error) {
55 var absRoot string
56
57 if len(h.Root) > 0 {
58 absRoot = h.Root
59 } else {
60 absRoot = filepath.Dir(h.Procfile)
61 }
62
63 return filepath.Abs(absRoot)
64}
65
66// Run runs the start command
67func (h *Handler) Run(c *cli.Context) error {

Callers 1

newCommandFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected