mirror of
https://github.com/ddworken/hishtory.git
synced 2025-02-23 22:11:13 +01:00
Support an undocumented hishtory import command that can be used to import hishtory items from a pipe
This commit is contained in:
parent
c7e7a9e04a
commit
e1c968fb21
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user