execute is default install entrypoint
(wsl wsllib.WslLib, reg wsllib.WslReg, name string, args []string)
| 57 | |
| 58 | // execute is default install entrypoint |
| 59 | func execute(wsl wsllib.WslLib, reg wsllib.WslReg, name string, args []string) error { |
| 60 | opts, err := parseArgs(args) |
| 61 | if err != nil { |
| 62 | return errutil.NewDisplayError(err, true, true, false) |
| 63 | } |
| 64 | return executeWithOptions(wsl, reg, name, opts) |
| 65 | } |
| 66 | |
| 67 | func parseArgs(args []string) (configOptions, error) { |
| 68 | if len(args) != 2 { |