pcgamedb/cmd/clean.go

22 lines
311 B
Go
Raw Normal View History

2024-09-24 06:17:11 -04:00
package cmd
import (
2024-11-20 06:09:04 -05:00
"pcgamedb/log"
"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)
}