remove command function
This commit is contained in:
+4
-2
@@ -28,10 +28,12 @@ var testCmd = &cobra.Command{
|
||||
Long: `loading config file
|
||||
Test serial port
|
||||
Test load sqlite database and init table`,
|
||||
Run: test,
|
||||
Run: func(cmd *cobra.Command, args []string) {
|
||||
test()
|
||||
},
|
||||
}
|
||||
|
||||
func test(cmd *cobra.Command, args []string) {
|
||||
func test() {
|
||||
log.Println("Testing environment")
|
||||
_ = utils.OpenPort(device, baudrate, bytesize)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user