MCPcopy
hub / github.com/cortesi/modd / PrepOnly

Method PrepOnly

modd.go:99–107  ·  view source on GitHub ↗

PrepOnly runs all prep functions and exits

(initial bool)

Source from the content-addressed store, hash-verified

97
98// PrepOnly runs all prep functions and exits
99func (mr *ModRunner) PrepOnly(initial bool) error {
100 for _, b := range mr.Config.Blocks {
101 err := RunPreps(b, mr.Config.GetVariables(), nil, mr.Log, mr.Notifiers, initial)
102 if err != nil {
103 return err
104 }
105 }
106 return nil
107}
108
109func (mr *ModRunner) runBlock(b conf.Block, mod *moddwatch.Mod, dpen *DaemonPen) {
110 if b.InDir != "" {

Callers 1

mainFunction · 0.95

Calls 2

RunPrepsFunction · 0.85
GetVariablesMethod · 0.80

Tested by

no test coverage detected