refactor: integrate CLI's code & CI into main repo (#1343)

This commit is contained in:
dkeven
2025-05-26 17:21:25 +08:00
committed by GitHub
parent 532b0a3e24
commit 22fdd7b86f
529 changed files with 102147 additions and 66 deletions

21
cli/cmd/ctl/gpu/enable.go Normal file
View File

@@ -0,0 +1,21 @@
package gpu
import (
"log"
"bytetrade.io/web3os/installer/pkg/pipelines"
"github.com/spf13/cobra"
)
func NewCmdEnableGpu() *cobra.Command {
cmd := &cobra.Command{
Use: "enable",
Short: "Enable GPU drivers for Olares node",
Run: func(cmd *cobra.Command, args []string) {
if err := pipelines.EnableGpuNode(); err != nil {
log.Fatalf("error: %v", err)
}
},
}
return cmd
}