You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
595 B
Go
29 lines
595 B
Go
package cmd
|
|
|
|
import (
|
|
"cu-helper/erp-mat/common"
|
|
"github.com/mizuki1412/go-core-kit/init/initkit"
|
|
"github.com/spf13/cobra"
|
|
)
|
|
|
|
//erp剩余材料按类型统计
|
|
|
|
func init() {
|
|
rootCmd.AddCommand(erpMatCmd)
|
|
defFlagsErp(erpMatCmd)
|
|
}
|
|
|
|
var erpMatCmd = &cobra.Command{
|
|
Use: "mat",
|
|
Short: "Generate erp materials remain list",
|
|
Run: func(cmd *cobra.Command, args []string) {
|
|
initkit.BindFlags(cmd)
|
|
common.GenExcelFile()
|
|
},
|
|
}
|
|
|
|
func defFlagsErp(cmd *cobra.Command) {
|
|
cmd.Flags().String("folderPath", "", "erp导出文件夹路径")
|
|
cmd.Flags().String("templatePath", "", "模板路径")
|
|
}
|