2
3
peilaus alkaen https://github.com/sammy-ette/Hilbish synced 2025-08-10 02:52:03 +00:00

docs: move Hooks to Signals

This commit is contained in:
sammyette 2023-12-18 13:33:05 -04:00
vanhempi fb3915ea26
commit 433ffa5068
Allekirjoittanut: sammyette
GPG avaimen ID: 904FC49417B44DCD
5 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa

Näytä tiedosto

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

Näytä tiedosto

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

Näytä tiedosto

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

Näytä tiedosto

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

Näytä tiedosto

@ -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 written in Go, but there are parts made in Lua, being most builtins
(`doc`, `cd`, cdr), completions, and other things. (`doc`, `cd`, cdr), completions, and other things.
Hilbish's Lua core module is called `nature`. It's handled after everything Hilbish's Lua core module is called `nature`.
on the Go side initializes, which is what that first sentence was from. It runs after Hilbish's Go core does.
# Nature Modules # Nature Modules
Currently, `nature` provides 1 intended public module: `nature.dirs`. Currently, `nature` provides 1 intended public module: `nature.dirs`.