add test db
This commit is contained in:
@@ -29,6 +29,9 @@ var (
|
||||
baudrate int
|
||||
bytesize byte
|
||||
|
||||
dbFile string
|
||||
dbInit bool
|
||||
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "tele-recv",
|
||||
@@ -90,5 +93,7 @@ func initConfig() {
|
||||
device = viper.GetString("serial.device")
|
||||
baudrate = viper.GetInt("serial.baudrate")
|
||||
bytesize = byte(viper.GetInt("serial.bytesize"))
|
||||
dbFile = viper.GetString("sqlite.file")
|
||||
dbInit = viper.GetBool("sqlite.init")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user