pub fn cli_get_input(message: &str, default_value: &str) -> StringExpand description
Gets text input from the user.
Displays a prompt message and waits for the user to enter text. If the user enters nothing, the default value is returned.
§Arguments
message- The prompt message to displaydefault_value- The value to return if the user enters nothing
§Returns
Returns the user’s input as a String, or the default value if no input was provided.
§Example
use falcon_cli::cli_get_input;
let name = cli_get_input("Enter your name: ", "Anonymous");
println!("Hello, {}!", name);