You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fmt.Println(wrapANSI("\033[33m", "There is existing data in the data directory.", "\033[0m"))
260
+
fmt.Println(wrapANSI("\033[33m", "If you change your data directory, you will need to manually move consensus, gateway, tpool, and hostd.db to the new directory.", "\033[0m"))
261
+
}
262
+
263
+
if!promptYesNo("Would you like to change the data directory? (Current: "+dir+")") {
264
+
return
265
+
}
266
+
cfg.Directory=readInput("Enter data directory")
267
+
}
268
+
241
269
funcbuildConfig() {
242
270
if_, err:=os.Stat("hostd.yml"); err==nil {
243
271
if!promptYesNo("hostd.yml already exists. Would you like to overwrite it?") {
244
272
return
245
273
}
246
274
}
247
275
276
+
fmt.Println("")
277
+
setDataDirectory()
278
+
248
279
fmt.Println("")
249
280
ifcfg.RecoveryPhrase!="" {
250
281
fmt.Println(wrapANSI("\033[33m", "A wallet seed phrase is already set.", "\033[0m"))
0 commit comments