docs: move Hooks to Signals

pull/260/head
sammyette 2023-12-18 13:33:05 -04:00
parent fb3915ea26
commit 433ffa5068
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
5 changed files with 8 additions and 8 deletions

View File

@ -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.

View File

@ -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

View File

@ -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.

View File

@ -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).

View File

@ -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`.