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>`,
|
||||
replacing <cmd> with the name of the command (for example `command.git`).
|
||||
`cb` must be a function that returns a table of "completion groups."
|
||||
A completion group is a table with the keys `items` and `type`.
|
||||
`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)
|
||||
Check `doc completions` for more information.
|
||||
|
||||
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>`,
|
||||
--- replacing <cmd> with the name of the command (for example `command.git`).
|
||||
--- `cb` must be a function that returns a table of "completion groups."
|
||||
--- A completion group is a table with the keys `items` and `type`.
|
||||
--- `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)
|
||||
--- Check `doc completions` for more information.
|
||||
--- @param scope string
|
||||
--- @param cb function
|
||||
function hilbish.complete(scope, cb) end
|
||||
|
|
Loading…
Reference in New Issue