2
3
зеркало из https://github.com/sammy-ette/Hilbish synced 2025-08-10 02:52:03 +00:00
Этот коммит содержится в:
sammyette 2023-12-18 13:33:05 -04:00
родитель fb3915ea26
Коммит 433ffa5068
Подписано: sammyette
Идентификатор ключа GPG: 904FC49417B44DCD
5 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -1,5 +1,5 @@
---
title: Hooks
title: Signals
description:
layout: doc
weight: -50
@ -7,5 +7,5 @@ menu:
docs
---
Hooks are Hilbish's versions of events, which are used via the [Bait](../api/bait) module.
For more detail on how to act on these hooks, you may check the Bait page.
Signals are global events emitted with the [Bait](../api/bait) module.
For more detail on how to use these signals, you may check the Bait page.

Просмотреть файл

@ -4,7 +4,7 @@ description:
layout: doc
menu:
docs:
parent: "Hooks"
parent: "Signals"
---
- `command.preexec` -> input, cmdStr > Thrown before a command

Просмотреть файл

@ -4,7 +4,7 @@ description:
layout: doc
menu:
docs:
parent: "Hooks"
parent: "Signals"
---
+ `hilbish.exit` > Sent when Hilbish is about to exit.

Просмотреть файл

@ -4,7 +4,7 @@ description:
layout: doc
menu:
docs:
parent: "Hooks"
parent: "Signals"
---
+ `signal.sigint` > Sent when Hilbish receives SIGINT (on Ctrl-C).

Просмотреть файл

@ -10,8 +10,8 @@ growing to their final phase: a full plant. A lot of Hilbish itself is
written in Go, but there are parts made in Lua, being most builtins
(`doc`, `cd`, cdr), completions, and other things.
Hilbish's Lua core module is called `nature`. It's handled after everything
on the Go side initializes, which is what that first sentence was from.
Hilbish's Lua core module is called `nature`.
It runs after Hilbish's Go core does.
# Nature Modules
Currently, `nature` provides 1 intended public module: `nature.dirs`.