pcgamedb/cmd/clean.go
2024-11-15 15:02:45 +08:00

22 lines
347 B
Go

package cmd
import (
"github.com/nitezs/pcgamedb/log"
"github.com/nitezs/pcgamedb/task"
"github.com/spf13/cobra"
)
var cleanCmd = &cobra.Command{
Use: "clean",
Long: "Clean database",
Short: "Clean database",
Run: func(cmd *cobra.Command, args []string) {
task.Clean(log.Logger)
},
}
func init() {
RootCmd.AddCommand(cleanCmd)
}