Skip to main content

VAR

Constant VAR 

Source
pub const VAR: &str = "COMPLETE";
Available on crate feature completion only.
Expand description

The environment variable that turns a run into a completion request.

It is clap_complete’s own default, which Homebrew’s :clap format sets, so COMPLETE=zsh toy prints the same script as toy completion zsh. An empty value or 0 leaves the run alone. clap_complete removes the variable before it calls a value completer, so a child process never answers a request meant for its parent.