From 1cdeb56366a1bb3c4480d6ad51ee8ca912511248 Mon Sep 17 00:00:00 2001
From: TorchedSammy
Date: Wed, 21 Dec 2022 01:00:32 +0000
Subject: [PATCH] deploy: a105b8e38dd353149fa6bca96a168aa3ffa4ddb5
---
docs/api/bait/index.html | 2 +-
docs/api/fs/index.html | 9 +++++++--
2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/docs/api/bait/index.html b/docs/api/bait/index.html
index 5f2d700..dfd09f6 100644
--- a/docs/api/bait/index.html
+++ b/docs/api/bait/index.html
@@ -6,6 +6,6 @@ Hilbish
It throws hooks that you can catch. This is what you will use if
you want to listen in on hooks to know when certain things have
happened, like when you’ve changed directory, a command has failed,
-etc. To find all available hooks thrown by Hilbish, see doc hooks.
Functions
catch(name, cb)
Catches a hook with name
. Runs the cb
when it is thrown
catchOnce(name, cb)
Same as catch, but only runs the cb
once and then removes the hook
hooks(name) -> {cb, cb…}
Returns a table with hooks on the event with name
.
release(name, catcher)
Removes the catcher
for the event with name
+etc. To find all available hooks thrown by Hilbish, see doc hooks.
Functions
catch(name, cb)
Catches a hook with name
. Runs the cb
when it is thrown
catchOnce(name, cb)
Same as catch, but only runs the cb
once and then removes the hook
hooks(name) ->
Returns a table with hooks (callback functions) on the event with name
.
release(name, catcher)
Removes the catcher
for the event with name
For this to work, catcher
has to be the same function used to catch
an event, like one saved to a variable.
throw(name, …args)
Throws a hook with name
with the provided args