aux platform

This commit is contained in:
nuknal
2024-05-15 16:32:18 +08:00
parent 6f76b2f131
commit 6a22735d78
16 changed files with 335 additions and 48 deletions

28
cmd/root.go Normal file
View File

@@ -0,0 +1,28 @@
package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var (
paramsXML string
)
var rootCmd = &cobra.Command{
Use: "SJY01 Preprocessing",
Short: "Preprocessing tools for SJY01 original raw data",
Long: ``,
Run: func(cmd *cobra.Command, args []string) {
fmt.Println("preprocessing tools for SJY01 original raw data")
},
}
func init() {
rootCmd.PersistentFlags().StringVarP(&paramsXML, "params", "p", "params.xml", "parameters file path")
}
func Execute() error {
return rootCmd.Execute()
}