(wsl wsllib.WslLib, reg wsllib.WslReg)
| 79 | } |
| 80 | |
| 81 | func GetCommandWithNoArgsWithDeps(wsl wsllib.WslLib, reg wsllib.WslReg) cmdline.Command { |
| 82 | return cmdline.Command{ |
| 83 | Visible: func(distroName string) bool { |
| 84 | return !wsl.IsDistributionRegistered(distroName) |
| 85 | }, |
| 86 | HelpText: getHelpMessageNoArgs, |
| 87 | Run: func(name string, args []string) error { |
| 88 | return execute(wsl, reg, name, args) |
| 89 | }, |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | // GetCommand returns the install command structure |
| 94 | func GetCommand() cmdline.Command { |