2026-04-29
This commit is contained in:
23
internal/app/control/clean/root.go
Normal file
23
internal/app/control/clean/root.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package clean
|
||||
|
||||
import (
|
||||
"github.com/spf13/cobra"
|
||||
"gitea.sunhpc.com/kelvin/sunhpc/internal/app/control/completions"
|
||||
)
|
||||
|
||||
type variables struct {
|
||||
}
|
||||
|
||||
func GetCommand() *cobra.Command {
|
||||
vars := variables{}
|
||||
baseCmd := &cobra.Command{
|
||||
DisableFlagsInUseLine: true,
|
||||
Use: "clean",
|
||||
Short: "Clean up",
|
||||
Long: "This command cleans the OCI cache and removes leftovers from deleted nodes",
|
||||
RunE: CobraRunE(&vars),
|
||||
Args: cobra.NoArgs,
|
||||
ValidArgsFunction: completions.None,
|
||||
}
|
||||
return baseCmd
|
||||
}
|
||||
Reference in New Issue
Block a user