add test db
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
||||
"github.com/spf13/cobra"
|
||||
"github.com/tarm/serial"
|
||||
"os"
|
||||
"it2000.com.cn/tele-recv/database"
|
||||
)
|
||||
|
||||
// testCmd represents the test command
|
||||
@@ -39,6 +40,8 @@ Test serial port`,
|
||||
}
|
||||
fmt.Println(c , "opened")
|
||||
_ = s.Close()
|
||||
|
||||
database.Init(dbFile, dbInit)
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user