MCPcopy
hub / github.com/yuk7/wsldl / execute

Function execute

src/isregd/command.go:24–29  ·  view source on GitHub ↗

execute is default isregd entrypoint. Exits with registerd status

(wsl wsllib.WslLib, name string, args []string)

Source from the content-addressed store, hash-verified

22
23// execute is default isregd entrypoint. Exits with registerd status
24func execute(wsl wsllib.WslLib, name string, args []string) error {
25 if wsl.IsDistributionRegistered(name) {
26 return nil
27 }
28 return errutil.NewExitCodeError(1, false)
29}

Calls 1