Crate falcon_cli

Crate falcon_cli 

Source

Re-exports§

pub use self::error::CliError;
pub use anyhow;
pub use self::macros::*;

Modules§

error
macros

Macros§

cli_debug
Outputs a debug message.
cli_error
Outputs an error message.
cli_info
Outputs an informational message.
cli_send
Outputs text without a newline.
cli_sendln
Outputs text with a newline.
cli_trace
Outputs a trace message.
cli_warn
Outputs a warning message.
indexmap
Create an IndexMap from a list of key-value pairs

Structs§

CliHelpScreen
Structure representing a help screen for a CLI command.
CliProgressBar
A progress bar for displaying task completion in the terminal.
CliRequest
Represents a parsed CLI command request.
CliRouter
The main router for CLI commands.
IndexMap
A hash table where the iteration order of the key-value pairs is independent of the hash values of the keys.

Enums§

CliFormat
Format validators for command arguments and flags.

Traits§

CliCommand
Trait that all CLI commands must implement.

Functions§

cli_clear_screen
Clears the terminal screen.
cli_confirm
Requests confirmation from the user.
cli_display_array
Displays a two-column array with proper spacing and word wrapping.
cli_display_table
Displays data in a formatted table.
cli_get_input
Gets text input from the user.
cli_get_multiline_input
Gets multi-line text input from the user.
cli_get_new_password
Gets a new password from the user with confirmation and strength validation.
cli_get_option
Prompts the user to select an option from a list.
cli_get_password
Gets a password from the user without displaying the input on screen.
cli_header
Displays a formatted header in the terminal.
cli_progress_bar
Creates and displays a new progress bar.
cli_run
Executes the CLI command router and processes the appropriate command.
cli_text_editor
Opens a text editor for the user to edit content.