libdnf5::cli::utils::userconfirm
- LIBDNF_CLI_API bool libdnf5::cli::utils::userconfirm::userconfirm (bool assume_no, bool assume_yes, bool default_yes)
Asks the user for interactive confirmation. Returns false immediately if assume_no is set, true if assume_yes is set. Otherwise prompts the user; default_yes determines the answer when the user presses Enter without typing anything, and the prompt displayed ([Y/n] or [y/N]).