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

Function GetCommandWithNoArgsWithDeps

src/install/command.go:81–91  ·  view source on GitHub ↗
(wsl wsllib.WslLib, reg wsllib.WslReg)

Source from the content-addressed store, hash-verified

79}
80
81func 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
94func GetCommand() cmdline.Command {

Calls 2

executeFunction · 0.70