@@ -14,6 +14,7 @@ import (
14
14
15
15
"github.com/chzyer/readline"
16
16
"github.com/mitchellh/go-homedir"
17
+ "github.com/renatoathaydes/go-hash/gohash_db"
17
18
"golang.org/x/crypto/ssh/terminal"
18
19
)
19
20
@@ -89,7 +90,7 @@ func openDatabase(dbFilePath string) (state State, userPass string) {
89
90
panic (err )
90
91
}
91
92
userPass = string (bytePassword )
92
- state , err = ReadDatabase (dbFilePath , userPass )
93
+ state , err = gohash_db . ReadDatabase (dbFilePath , userPass )
93
94
if err != nil {
94
95
println ("Error: " + err .Error ())
95
96
} else {
@@ -177,7 +178,7 @@ Loop:
177
178
command := commands [cmd ]
178
179
if command != nil {
179
180
command .run (state , grBox .value , args , reader )
180
- err := WriteDatabase (dbPath , mpBox .value , state )
181
+ err := gohash_db . WriteDatabase (dbPath , mpBox .value , state )
181
182
if err != nil {
182
183
println ("Error writing to database: " + err .Error ())
183
184
}
@@ -191,7 +192,7 @@ Loop:
191
192
func main () {
192
193
var userPass string
193
194
var state State
194
- println ("Go-Hash version " + DBVersion )
195
+ println ("Go-Hash version " + gohash_db . DBVersion )
195
196
println ("" )
196
197
197
198
var dbFilePath string
0 commit comments