cuc (Clink Usage Completions)
A CLI tool to generate clink argmatcher completions from the usage spec.
Installation
-
Go to Releases and download the executable to a desired location.
-
The generated
usage.completions.luarequires that you have these modules in your package.path (you can also use!init.luaor.init.lua, to ensure the modules are added to package.path): -
For dynamic completion i.e. a usage.spec.kdl that uses
complete, you'd need a shell while generating. Thecompletenode in the spec uses run command that require unix shells. As a workaround, you can use git-bash which would work fine (CLI already uses it). So, you'd need to specify when using shell other than git-bash (or if not found) like MSYS2 environment. -
For loading completions, you can either provide the spec from a file or by stdin.
load
load