docs(complete): Add stdout warning to env

This commit is contained in:
Ed Page 2024-08-16 10:42:00 -05:00
parent e46263a048
commit 3c69aaa312

View file

@ -68,6 +68,11 @@ pub use shells::*;
/// - Performance: we don't need to general [`clap::Command`] twice or parse arguments
/// - Flexibility: there is no concern over it interfering with other CLI logic
///
/// **Warning:** `stdout` should not be written to before [`CompleteEnv::complete`] has had a
/// chance to run.
///
/// # Examples
///
/// ```rust
/// # use clap_complete::CompleteEnv;
/// fn cli() -> clap::Command {