mirror of https://github.com/Hilbis/Hilbish
docs: [ci] generate new docs
parent
76c94bfcce
commit
b1ad90443e
|
@ -5,8 +5,10 @@ appendPath(dir) > Appends `dir` to $PATH
|
||||||
complete(scope, cb) > Registers a completion handler for `scope`.
|
complete(scope, cb) > Registers a completion handler for `scope`.
|
||||||
A `scope` is currently only expected to be `command.<cmd>`,
|
A `scope` is currently only expected to be `command.<cmd>`,
|
||||||
replacing <cmd> with the name of the command (for example `command.git`).
|
replacing <cmd> with the name of the command (for example `command.git`).
|
||||||
`cb` must be a function that returns a table of the entries to complete.
|
`cb` must be a function that returns a table of "completion groups."
|
||||||
Nested tables will be used as sub-completions.
|
A completion group is a table with the keys `items` and `type`.
|
||||||
|
`items` being a table of items and `type` being the display type of
|
||||||
|
`grid` (the normal file completion display) or `list` (with a description)
|
||||||
|
|
||||||
cwd() > Returns the current directory of the shell
|
cwd() > Returns the current directory of the shell
|
||||||
|
|
||||||
|
|
|
@ -14,8 +14,10 @@ function hilbish.appendPath(dir) end
|
||||||
--- Registers a completion handler for `scope`.
|
--- Registers a completion handler for `scope`.
|
||||||
--- A `scope` is currently only expected to be `command.<cmd>`,
|
--- A `scope` is currently only expected to be `command.<cmd>`,
|
||||||
--- replacing <cmd> with the name of the command (for example `command.git`).
|
--- replacing <cmd> with the name of the command (for example `command.git`).
|
||||||
--- `cb` must be a function that returns a table of the entries to complete.
|
--- `cb` must be a function that returns a table of "completion groups."
|
||||||
--- Nested tables will be used as sub-completions.
|
--- A completion group is a table with the keys `items` and `type`.
|
||||||
|
--- `items` being a table of items and `type` being the display type of
|
||||||
|
--- `grid` (the normal file completion display) or `list` (with a description)
|
||||||
--- @param scope string
|
--- @param scope string
|
||||||
--- @param cb function
|
--- @param cb function
|
||||||
function hilbish.complete(scope, cb) end
|
function hilbish.complete(scope, cb) end
|
||||||
|
|
Loading…
Reference in New Issue