cli_get_multiline_input

Function cli_get_multiline_input 

Source
pub fn cli_get_multiline_input(message: &str) -> String
Expand description

Gets multi-line text input from the user.

Displays a prompt message and collects multiple lines of input from the user. Input collection stops when the user enters an empty line.

§Arguments

  • message - The prompt message to display

§Returns

Returns all entered lines joined with newline characters as a single String.

§Example

use falcon_cli::cli_get_multiline_input;

let description = cli_get_multiline_input("Enter description:");
println!("You entered:\n{}", description);