MCPcopy
hub / github.com/go-task/task / Setup

Method Setup

setup.go:26–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24)
25
26func (e *Executor) Setup() error {
27 e.setupLogger()
28 node, err := e.getRootNode()
29 if err != nil {
30 return err
31 }
32 if err := e.setupTempDir(); err != nil {
33 return err
34 }
35 if err := e.readTaskfile(node); err != nil {
36 return err
37 }
38 e.setupStdFiles()
39 if err := e.setupOutput(); err != nil {
40 return err
41 }
42 if err := e.setupCompiler(); err != nil {
43 return err
44 }
45 if err := e.readDotEnvFiles(); err != nil {
46 return err
47 }
48 if err := e.doVersionChecks(); err != nil {
49 return err
50 }
51 e.setupDefaults()
52 e.setupConcurrencyState()
53 return nil
54}
55
56func (e *Executor) getRootNode() (taskfile.Node, error) {
57 node, err := taskfile.NewRootNode(e.Entrypoint, e.Dir, e.Insecure, e.Timeout,

Callers 15

runMethod · 0.95
runMethod · 0.95
TestFileWatchFunction · 0.95
RunMethod · 0.95
TestGeneratesFunction · 0.95
TestStatusChecksumFunction · 0.95
TestStatusTimestampFunction · 0.95
TestStatusVariablesFunction · 0.95
TestCmdsVariablesFunction · 0.95
TestCyclicDepFunction · 0.95

Calls 11

setupLoggerMethod · 0.95
getRootNodeMethod · 0.95
setupTempDirMethod · 0.95
readTaskfileMethod · 0.95
setupStdFilesMethod · 0.95
setupOutputMethod · 0.95
setupCompilerMethod · 0.95
readDotEnvFilesMethod · 0.95
doVersionChecksMethod · 0.95
setupDefaultsMethod · 0.95
setupConcurrencyStateMethod · 0.95

Tested by 15

runMethod · 0.76
runMethod · 0.76
TestFileWatchFunction · 0.76
RunMethod · 0.76
TestGeneratesFunction · 0.76
TestStatusChecksumFunction · 0.76
TestStatusTimestampFunction · 0.76
TestStatusVariablesFunction · 0.76
TestCmdsVariablesFunction · 0.76
TestCyclicDepFunction · 0.76