gsh/command/history

The history module provides functionality for reviewing previous commands.

When a user wants to see their session’s execution history, this module formats and prints the chronologically ordered list of inputs.

Values

pub fn show(history: List(String)) -> Nil

Prints a numbered list of all previously executed commands in the current REPL session. If no commands have been entered yet, it safely notifies the user that the history is empty.

Search Document