shell_mode

Function shell_mode 

Source
pub fn shell_mode(db_path: &str) -> Result<ShellAction>
Expand description

Starts the interactive shell mode.

This function initializes and runs the Shell. It ensures that the command history is saved and the original working directory is restored after the shell session ends.

§Arguments

  • db_path - The path to the database file, which provides context to the shell.

§Returns

A Result containing the ShellAction that indicates the next step for the calling code (e.g., exit or switch to REPL).