mirror of
https://github.com/beclab/Olares
synced 2026-05-20 15:28:24 +00:00
20 lines
490 B
Go
20 lines
490 B
Go
package gpu
|
|
|
|
import (
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
func NewCmdGpu() *cobra.Command {
|
|
rootGpuCmd := &cobra.Command{
|
|
Use: "gpu",
|
|
Short: "install / uninstall / status / disbale gpu commands for olares.",
|
|
}
|
|
|
|
rootGpuCmd.AddCommand(NewCmdInstallGpu())
|
|
rootGpuCmd.AddCommand(NewCmdUninstallpu())
|
|
rootGpuCmd.AddCommand(NewCmdEnableGpu())
|
|
rootGpuCmd.AddCommand(NewCmdDisableGpu())
|
|
rootGpuCmd.AddCommand(NewCmdUpgradeGpu())
|
|
rootGpuCmd.AddCommand(NewCmdGpuStatus())
|
|
return rootGpuCmd
|
|
}
|