mirror of
https://github.com/halfrost/LeetCode-Go.git
synced 2025-07-04 16:12:47 +08:00
28 lines
481 B
Go
28 lines
481 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() {
|
|
//buildBookMenu()
|
|
copyLackFile()
|
|
delPreNext()
|
|
buildREADME()
|
|
buildChapterTwo(true)
|
|
addPreNext()
|
|
}
|