Skip to main content

no_input

Function no_input 

Source
pub fn no_input(flag: bool) -> bool
Expand description

Whether this invocation refuses to read stdin: CLI --no-input > XDG cli.no_input > false.

The flag is one-way by design — passing it turns the refusal on, and a host that opted in through XDG turns it off by unsetting the key rather than by a --no-input=false, which would read as “input is allowed here” while the surrounding automation assumes otherwise.