Add the history import command (again) (#14083)

# Description

This is mainly https://github.com/nushell/nushell/pull/13450 (which got
reverted). Additionally:
 - always clear IDs on import, disallow specifying IDs when piping
 - added extra tests
 - create backup of the history

# User-Facing Changes

New command: `history import`

# Tests + Formatting

Added mostly integration tests and a few smaller unit tests.
This commit is contained in:
Piotr Kufel
2024-10-29 04:34:48 -07:00
committed by GitHub
parent 719d9aa83c
commit f8d4adfb7a
11 changed files with 792 additions and 17 deletions

View File

@ -1,2 +1,3 @@
mod history_import;
mod keybindings_list;
mod nu_highlight;