utils/tui_helpers library
File: tui_helpers.dart Project: clonify Author: Mohammad Salameh Created Date: 12.11.2024 Description: TUI (Text User Interface) helper functions and wrappers for enhanced interactive command-line experience using mason_logger.
Properties
- tuiLogger ↔ Logger
-
Global TUI-enabled logger instance
getter/setter pair
Functions
-
chooseAnyWithTUI(
String message, List< String> choices, {List<String> ? defaultValues}) → List<String> - Enhanced multi-choice selection with TUI support
-
chooseOneWithTUI(
String message, List< String> choices, {String? defaultValue}) → String? - Enhanced single-choice selection with TUI support
-
confirmWithTUI(
String message, {bool defaultValue = false}) → bool - Enhanced confirmation prompt with TUI support
-
detailMessage(
String message) → void - Display a detail/debug message with styling
-
errorMessage(
String message) → void - Display an error message with styling
-
infoMessage(
String message) → void - Display an info message with styling
-
initializeTUI(
{bool noTui = false}) → void - Initialize the TUI system with a logger instance
-
isTUIEnabled(
) → bool - Check if TUI features are currently enabled
-
progressWithTUI(
String message) → Progress? - Create a progress indicator for long-running operations
-
promptWithTUI(
String message, {String? defaultValue, }) → String - Enhanced prompt with TUI support
-
successMessage(
String message) → void - Display a success message with styling
-
warningMessage(
String message) → void - Display a warning message with styling