Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var HandledPredictors = sortedPredictorNames()
HandledPredictors is the sorted set of predictor names completionEmitters implements. Sourced from the map, so the dispatch and this published list can never disagree.
Functions ¶
func CompletionHandler ¶
CompletionHandler dispatches dynamic completion requests routed through `--@complete=<kind>` (clib's predictor mechanism). The shell completion script invokes `jira --@complete=foo -- arg1 arg2` for positional args; this handler emits one candidate per line, optionally `value\tdesc`.
Each predictor name corresponds either to a flag's `clib.FlagExtra{Complete: "predictor=foo"}` or to an entry in a command's `Annotations["clib"]` `dynamic-args='foo,bar'` list. Unknown kinds emit nothing, leaving the shell to fall back to free-form input.
Types ¶
This section is empty.