2022-12-15 04:00:54 +00:00
|
|
|
---
|
|
|
|
title: Interface hilbish.history
|
|
|
|
description: command history
|
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "API"
|
|
|
|
---
|
|
|
|
|
|
|
|
## 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.
|
|
|
|
|
2023-02-07 22:19:24 +00:00
|
|
|
### all() -> table
|
|
|
|
Retrieves all history.
|
|
|
|
|
2022-12-15 04:00:54 +00:00
|
|
|
### clear()
|
|
|
|
Deletes all commands from the history.
|
|
|
|
|
|
|
|
### get(idx)
|
|
|
|
Retrieves a command from the history based on the `idx`.
|
|
|
|
|
2023-02-07 22:19:24 +00:00
|
|
|
### size() -> number
|
2022-12-15 04:00:54 +00:00
|
|
|
Returns the amount of commands in the history.
|
|
|
|
|