Module hilbish.history

command history

Introduction

The history interface deals with command history. This includes the ability to override functions to change the main method of saving history.

Functions

add(cmd)Adds a command to the history.
all() -> tableRetrieves all history.
clear()Deletes all commands from the history.
get(idx)Retrieves a command from the history based on the idx.
size() -> numberReturns the amount of commands in the history.

hilbish.history.add(cmd)

Adds a command to the history.

Parameters

This function has no parameters.


hilbish.history.all() -> table

Retrieves all history.

Parameters

This function has no parameters.


hilbish.history.clear()

Deletes all commands from the history.

Parameters

This function has no parameters.


hilbish.history.get(idx)

Retrieves a command from the history based on the idx.

Parameters

This function has no parameters.


hilbish.history.size() -> number

Returns the amount of commands in the history.

Parameters

This function has no parameters.