package actions | |
import ( | |
"strings" | |
"cos.googlesource.com/cos/tools.git/src/pkg/dkms" | |
"github.com/spf13/cobra" | |
) | |
var uninstallCmd = &cobra.Command{ | |
Use: "uninstall", | |
Short: "Uninstalls a module from the install tree", | |
Long: strings.TrimSpace(` | |
Uninstall removes all of the installed modules of a DKMS package from the | |
install tree. | |
`), | |
Args: ParseArgs, | |
RunE: func(cmd *cobra.Command, args []string) error { | |
return dkms.Uninstall(RootPackage) | |
}, | |
} | |
func init() { | |
rootCmd.AddCommand(uninstallCmd) | |
} |