Support an undocumented hishtory import command that can be used to import hishtory items from a pipe

This commit is contained in:
David Dworken 2022-10-03 23:14:06 -07:00
parent c7e7a9e04a
commit e1c968fb21

View File

@ -78,9 +78,6 @@ func main() {
}
case "import":
ctx := hctx.MakeContext()
if os.Getenv("HISHTORY_TEST") == "" {
lib.CheckFatalError(fmt.Errorf("the hishtory import command is only meant to be for testing purposes"))
}
numImported, err := lib.ImportHistory(ctx)
lib.CheckFatalError(err)
if numImported > 0 {