execute is default isregd entrypoint. Exits with registerd status
(wsl wsllib.WslLib, name string, args []string)
| 22 | |
| 23 | // execute is default isregd entrypoint. Exits with registerd status |
| 24 | func 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 | } |