2022-12-15 04:00:54 +00:00
|
|
|
---
|
2023-08-26 15:30:51 +00:00
|
|
|
title: Module hilbish.history
|
2022-12-15 04:00:54 +00:00
|
|
|
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
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.history.add(cmd)
|
2022-12-15 04:00:54 +00:00
|
|
|
Adds a command to the history.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.history.all() -> table
|
2023-02-07 22:19:24 +00:00
|
|
|
Retrieves all history.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2023-02-07 22:19:24 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.history.clear()
|
2022-12-15 04:00:54 +00:00
|
|
|
Deletes all commands from the history.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.history.get(idx)
|
2022-12-15 04:00:54 +00:00
|
|
|
Retrieves a command from the history based on the `idx`.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2023-08-26 15:30:51 +00:00
|
|
|
### hilbish.history.size() -> number
|
2022-12-15 04:00:54 +00:00
|
|
|
Returns the amount of commands in the history.
|
2023-08-26 15:30:51 +00:00
|
|
|
#### Parameters
|
|
|
|
This function has no parameters.
|
2022-12-15 04:00:54 +00:00
|
|
|
|