Skip to main content

Module discover

Module discover 

Source
Expand description

Flag alias discovery — parse --help output to find short/long flag pairs.

Enables auto-expansion: a rule with flags = ["--force"] also matches -f if the flag cache knows --force aliases to -f.

Structs§

ArchivedFlagAlias
An archived FlagAlias
ArchivedFlagCache
An archived FlagCache
FlagAlias
A short ↔ long flag pair discovered from help output.
FlagAliasResolver
The resolver for an archived FlagAlias
FlagCache
Cached flag aliases keyed by command (e.g. “git push”, “curl”).
FlagCacheResolver
The resolver for an archived FlagCache

Functions§

discover_flags
Run a command with --help and parse the output for flag aliases.
expand_flags
Expand a list of flags with their aliases from the cache.
load_cache
Load the flag cache from ~/.rippy/flag-cache.bin.
parse_help_output
Parse help output text and extract short/long flag pairs.
run
Run the rippy discover command.
save_cache
Save the flag cache to ~/.rippy/flag-cache.bin.