2
2
鏡像自 https://github.com/Hilbis/Hilbish synced 2025-07-06 02:52:02 +00:00

docs: [ci] generate new docs

This commit is contained in:
TorchedSammy 2022-04-23 01:26:03 +00:00 提交者 TorchedSammy
父節點 03a57fce5b
當前提交 dbb27f7739
簽署人: sammyette
GPG 金鑰 ID: 904FC49417B44DCD
共有 2 個檔案被更改,包括 2 行新增6 行删除

查看文件

@ -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