Files
LeetCode-Go/ctl/refresh.go
2021-01-18 11:06:37 +08:00

26 lines
446 B
Go

package main
import (
"github.com/spf13/cobra"
)
func newRefresh() *cobra.Command {
cmd := &cobra.Command{
Use: "refresh",
Short: "Refresh all document",
Run: func(cmd *cobra.Command, args []string) {
refresh()
},
}
// cmd.Flags().StringVar(&alias, "alias", "", "alias")
// cmd.Flags().StringVar(&appId, "appid", "", "appid")
return cmd
}
func refresh() {
delPreNext()
buildREADME()
buildChapterTwo(true)
addPreNext()
}