Module: Dry::CLI::Autocomplete

Defined in:
lib/dry/cli/autocomplete.rb,
lib/dry/cli/autocomplete/command.rb,
lib/dry/cli/autocomplete/version.rb,
lib/dry/cli/autocomplete/emitters/zsh.rb,
lib/dry/cli/autocomplete/spec_builder.rb,
lib/dry/cli/autocomplete/emitters/bash.rb,
sig/dry/cli/autocomplete.rbs

Overview

Generates static shell completion scripts from a Dry::CLI registry.

The generator reads the registry and never forces anything beyond it: commands, subcommands, options, their declared enum values, and which arguments look like file paths. Nothing it produces requires loading a host's data, because the script is regenerated on every shell start via eval "$(mycli completion bash)" and a slow generator is a slow shell.

Defined Under Namespace

Modules: Emitters Classes: Command, Error, SpecBuilder

Constant Summary collapse

VERSION =

Returns:

  • (String)
"0.1.3"