mirror of https://github.com/Hilbis/Hilbish
docs: [ci] generate new docs
parent
03a57fce5b
commit
dbb27f7739
|
@ -6,9 +6,7 @@ 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 "completion groups."
|
`cb` must be a function that returns a table of "completion groups."
|
||||||
A completion group is a table with the keys `items` and `type`.
|
Check `doc completions` for more information.
|
||||||
`items` being a table of items and `type` being the display type, which is
|
|
||||||
`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
|
||||||
|
|
||||||
|
|
|
@ -15,9 +15,7 @@ function hilbish.appendPath(dir) end
|
||||||
--- 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 "completion groups."
|
--- `cb` must be a function that returns a table of "completion groups."
|
||||||
--- A completion group is a table with the keys `items` and `type`.
|
--- Check `doc completions` for more information.
|
||||||
--- `items` being a table of items and `type` being the display type, which is
|
|
||||||
--- `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