docs: fix indent size and type

windows-fixes
TorchedSammy 2022-03-05 21:39:52 -04:00
parent f3f49fc398
commit f28fd7e6c0
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 21 additions and 21 deletions

View File

@ -58,27 +58,27 @@ is true
- `hilbish.complete()` has had a slight refactor to fit with the new readline library. - `hilbish.complete()` has had a slight refactor to fit with the new readline library.
It now expects a table of "completion groups" which are just tables with the It now expects a table of "completion groups" which are just tables with the
`type` and `items` keys. Here is a (more or less) complete example of how it works now: `type` and `items` keys. Here is a (more or less) complete example of how it works now:
```lua ```lua
hilbish.complete('command.git', function() hilbish.complete('command.git', function()
return { return {
{ {
items = { items = {
'add', 'add',
'clone' 'clone'
}, },
type = 'grid' type = 'grid'
}, },
{ {
items = { items = {
['--git-dir'] = {'Description of flag'}, ['--git-dir'] = {'Description of flag'},
'-c' '-c'
}, },
type = 'list' type = 'list'
} }
} }
end) end)
``` ```
Completer functions are now also expected to handle subcommands/subcompletions Completer functions are now also expected to handle subcommands/subcompletions
## [0.7.1] - 2021-11-22 ## [0.7.1] - 2021-11-22
### Fixed ### Fixed