mirror of https://github.com/Hilbis/Hilbish
docs: move Hooks to Signals
parent
fb3915ea26
commit
433ffa5068
|
@ -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.
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
|
@ -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).
|
||||||
|
|
|
@ -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`.
|
||||||
|
|
Loading…
Reference in New Issue