2022-12-15 04:00:54 +00:00
|
|
|
---
|
|
|
|
title: Interface hilbish.aliases
|
|
|
|
description: command aliasing
|
|
|
|
layout: doc
|
|
|
|
menu:
|
|
|
|
docs:
|
|
|
|
parent: "API"
|
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
The alias interface deals with all command aliases in Hilbish.
|
|
|
|
|
|
|
|
## Functions
|
|
|
|
### add(alias, cmd)
|
|
|
|
This is an alias (ha) for the `hilbish.alias` function.
|
|
|
|
|
|
|
|
### delete(name)
|
|
|
|
Removes an alias.
|
|
|
|
|
2023-01-07 15:52:49 +00:00
|
|
|
### list() -> table<string, string>
|
2022-12-21 01:00:31 +00:00
|
|
|
Get a table of all aliases, with string keys as the alias and the value as the command.
|
2022-12-15 04:00:54 +00:00
|
|
|
|
2022-12-21 01:00:31 +00:00
|
|
|
### resolve(alias) -> command (string)
|
2022-12-15 04:00:54 +00:00
|
|
|
Tries to resolve an alias to its command.
|
|
|
|
|