pcgamedb/cmd/clean.go

22 lines
347 B
Go
Raw Normal View History

2024-09-24 06:17:11 -04:00
package cmd
import (
2024-11-15 02:02:45 -05:00
"github.com/nitezs/pcgamedb/log"
"github.com/nitezs/pcgamedb/task"
2024-09-24 06:17:11 -04:00
"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)
}