pcgamedb/cmd/clean.go
nite07 304517e241
Some checks failed
release / goreleaser (push) Failing after 2m23s
docker / prepare-and-build (push) Failing after 2m55s
trans to private
2024-11-20 19:09:04 +08:00

22 lines
311 B
Go

package cmd
import (
"pcgamedb/log"
"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)
}