Crate gen_completions

Crate gen_completions 

Source
Expand description

This is a library for generating completions either by parsing manpages or from KDL or JSON config files. If you’re looking for the CLI tool, head to https://crates.io/crates/gen-completions

The parse_man module parses manpages, while the parse_deser module deserializes a KDL or JSON file to get command information. Both produce CommandInfos that can then be used to generate shell completions using the gen module.

Modules§

gen
parse_deser
For parsing completions from a serialization language (KDL or JSON)
parse_man
For parsing command information from man pages

Structs§

CommandInfo
Flags parsed from a command, as well as its parsed subcommands
Flag
A parsed flag

Enums§

ArgType
How to complete an argument