Utilities Module¶
The utilities module (cli_utils.py) provides shared infrastructure used across all CLI handlers.
Overview¶
This module contains:
- Color System: HCL color palette with true color support and 16-color fallback
- ConsequenceType: Dual-tense action labels (prompt/result) with semantic colors
- ResultReporter: Unified rendering system for mutation commands
- TableFormatter: Aligned table output for list commands
- Error Formatting: Structured validation and error messages
- Parsing Utilities: Functions for parsing command-line arguments
Key Components¶
Color System¶
Colorenum: HCL color palette with semantic mapping_colors_enabled(): TTY detection and NO_COLOR support_supports_truecolor(): True color capability detectionhighlight(): Entity name highlighting for show commands
ConsequenceType System¶
- Dual-tense labels (present for prompts, past for results)
- Semantic color mapping (green=constructive, red=destructive, etc.)
- Categories: Constructive, Recovery, Destructive, Modification, Transfer, Informational, No-op
Output Formatting¶
ResultReporter: Tracks consequences and renders with tense-aware colorsTableFormatter: Renders aligned tables with auto-width supportConsequence: Data model for nested consequences
Error Handling¶
ValidationError: Structured validation errors with field and suggestionformat_validation_error(): Formatted error outputformat_info(): Info messagesformat_warning(): Warning messages
Utilities¶
request_confirmation(): User confirmation with auto-approve supportparse_env_vars(): Parse KEY=VALUE environment variablesparse_header(): Parse KEY=VALUE HTTP headersparse_input(): Parse VS Code input variable definitionsparse_host_list(): Parse comma-separated hosts or 'all'get_package_mcp_server_config(): Extract MCP config from package metadata
Module Reference¶
hatch.cli.cli_utils
¶
Shared utilities for Hatch CLI.
This module provides common utilities used across CLI handlers, extracted from the monolithic cli_hatch.py to enable cleaner handler-based architecture and easier testing.
Constants
EXIT_SUCCESS (int): Exit code for successful operations (0) EXIT_ERROR (int): Exit code for failed operations (1)
Classes:
| Name | Description |
|---|---|
Color |
ANSI color codes with brightness variants for tense distinction |
Functions:
| Name | Description |
|---|---|
get_hatch_version |
Retrieve version from package metadata |
request_confirmation |
Interactive user confirmation with auto-approve support |
parse_env_vars |
Parse KEY=VALUE environment variable arguments |
parse_header |
Parse KEY=VALUE HTTP header arguments |
parse_input |
Parse VSCode input configurations |
parse_host_list |
Parse comma-separated host list or 'all' |
get_package_mcp_server_config |
Extract MCP server config from package metadata |
_colors_enabled |
Check if color output should be enabled |
Example
from hatch.cli.cli_utils import EXIT_SUCCESS, EXIT_ERROR, request_confirmation if request_confirmation("Proceed?", auto_approve=False): ... return EXIT_SUCCESS ... else: ... return EXIT_ERROR
from hatch.cli.cli_utils import parse_env_vars env_dict = parse_env_vars(["API_KEY=secret", "DEBUG=true"])
Returns:¶
Classes¶
Color
¶
Bases: Enum
HCL color palette with true color support and 16-color fallback.
Uses a qualitative HCL palette with equal perceived brightness for accessibility and visual harmony. True color (24-bit) is used when supported, falling back to standard 16-color ANSI codes.
Reference: R12 §3.2 (12-enhancing_colors_v0.md) Reference: R06 §3.1 (06-dependency_analysis_v0.md) Reference: R03 §4 (03-mutation_output_specification_v0.md)
HCL Palette Values
GREEN #80C990 → rgb(128, 201, 144) RED #EFA6A2 → rgb(239, 166, 162) YELLOW #C8C874 → rgb(200, 200, 116) BLUE #A3B8EF → rgb(163, 184, 239) MAGENTA #E6A3DC → rgb(230, 163, 220) CYAN #50CACD → rgb(80, 202, 205) GRAY #808080 → rgb(128, 128, 128) AMBER #A69460 → rgb(166, 148, 96)
Color Semantics
Green → Constructive (CREATE, ADD, CONFIGURE, INSTALL, INITIALIZE) Blue → Recovery (RESTORE) Red → Destructive (REMOVE, DELETE, CLEAN) Yellow → Modification (SET, UPDATE) Magenta → Transfer (SYNC) Cyan → Informational (VALIDATE) Gray → No-op (SKIP, EXISTS, UNCHANGED) Amber → Entity highlighting (show commands)
Example
from hatch.cli.cli_utils import Color, _colors_enabled if _colors_enabled(): ... print(f"{Color.GREEN.value}Success{Color.RESET.value}") ... else: ... print("Success")
Source code in hatch/cli/cli_utils.py
111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 | |
ColumnDef
dataclass
¶
Column definition for TableFormatter.
Reference: R06 §3.6 (06-dependency_analysis_v0.md) Reference: R02 §5 (02-list_output_format_specification_v2.md)
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Column header text |
width |
Union[int, Literal['auto']]
|
Fixed width (int) or "auto" for auto-calculation |
align |
Literal['left', 'right', 'center']
|
Text alignment ("left", "right", "center") |
Example
col = ColumnDef(name="Name", width=20, align="left") col_auto = ColumnDef(name="Count", width="auto", align="right")
Source code in hatch/cli/cli_utils.py
Consequence
dataclass
¶
Data model for a single consequence (resource or field level).
Consequences represent actions that will be or have been performed. They can be nested to show resource-level actions with field-level details.
Reference: R06 §3.3 (06-dependency_analysis_v0.md) Reference: R04 §5.1 (04-reporting_infrastructure_coexistence_v0.md)
Attributes:
| Name | Type | Description |
|---|---|---|
type |
ConsequenceType
|
The ConsequenceType indicating the action category |
message |
str
|
Human-readable description of the consequence |
children |
List[Consequence]
|
Nested consequences (e.g., field-level details under resource) |
Invariants
- children only populated for resource-level consequences
- field-level consequences have empty children list
- nesting limited to 2 levels (resource → field)
Example
parent = Consequence( ... type=ConsequenceType.CONFIGURE, ... message="Server 'weather' on 'claude-desktop'", ... children=[ ... Consequence(ConsequenceType.UPDATE, "command: None → 'python'"), ... Consequence(ConsequenceType.SKIP, "timeout: unsupported"), ... ] ... )
Source code in hatch/cli/cli_utils.py
ConsequenceType
¶
Bases: Enum
Action types with dual-tense labels and semantic colors.
Each consequence type has: - prompt_label: Present tense for confirmation prompts (e.g., "CREATE") - result_label: Past tense for execution results (e.g., "CREATED") - prompt_color: Dim color for prompts - result_color: Bright color for results
Reference: R06 §3.2 (06-dependency_analysis_v0.md) Reference: R03 §2 (03-mutation_output_specification_v0.md)
Categories
Constructive (Green): CREATE, ADD, CONFIGURE, INSTALL, INITIALIZE Recovery (Blue): RESTORE Destructive (Red): REMOVE, DELETE, CLEAN Modification (Yellow): SET, UPDATE Transfer (Magenta): SYNC Informational (Cyan): VALIDATE No-op (Gray): SKIP, EXISTS, UNCHANGED
Example
ct = ConsequenceType.CREATE print(f"[{ct.prompt_label}]") # [CREATE] print(f"[{ct.result_label}]") # [CREATED]
Source code in hatch/cli/cli_utils.py
284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | |
ResultReporter
¶
Unified rendering system for all CLI output.
Tracks consequences and renders them with tense-aware, color-coded output. Present tense (dim colors) for confirmation prompts, past tense (bright colors) for execution results.
Reference: R06 §3.4 (06-dependency_analysis_v0.md) Reference: R04 §5.2 (04-reporting_infrastructure_coexistence_v0.md) Reference: R01 §8.2 (01-cli_output_analysis_v2.md)
Attributes:
| Name | Type | Description |
|---|---|---|
command_name |
str
|
Display name for the command (e.g., "hatch mcp configure") |
dry_run |
bool
|
If True, append "- DRY RUN" suffix to result labels |
consequences |
List[Consequence]
|
List of tracked consequences in order of addition |
Invariants
- consequences list is append-only
- report_prompt() and report_result() are idempotent
- Order of add() calls determines output order
Example
reporter = ResultReporter("hatch env create", dry_run=False) reporter.add(ConsequenceType.CREATE, "Environment 'dev'") reporter.add(ConsequenceType.CREATE, "Python environment (3.11)") prompt = reporter.report_prompt() # Present tense, dim colors
... user confirms ...¶
reporter.report_result() # Past tense, bright colors
Source code in hatch/cli/cli_utils.py
446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 | |
Attributes¶
command_name
property
¶
Display name for the command.
consequences
property
¶
List of tracked consequences in order of addition.
dry_run
property
¶
Whether this is a dry-run preview.
Functions¶
__init__(command_name, dry_run=False)
¶
Initialize ResultReporter.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command_name
|
str
|
Display name for the command |
required |
dry_run
|
bool
|
If True, results show "- DRY RUN" suffix |
False
|
Source code in hatch/cli/cli_utils.py
add(consequence_type, message, children=None)
¶
Add a consequence with optional nested children.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
consequence_type
|
ConsequenceType
|
The type of action |
required |
message
|
str
|
Human-readable description |
required |
children
|
Optional[List[Consequence]]
|
Optional nested consequences (e.g., field-level details) |
None
|
Invariants
- Order of add() calls determines output order
- Children inherit parent's tense during rendering
Source code in hatch/cli/cli_utils.py
add_from_conversion_report(report)
¶
Convert ConversionReport field operations to nested consequences.
Maps ConversionReport data to the unified consequence model: - report.operation → resource ConsequenceType - field_op "UPDATED" → ConsequenceType.UPDATE - field_op "UNSUPPORTED" → ConsequenceType.SKIP - field_op "UNCHANGED" → ConsequenceType.UNCHANGED
Reference: R06 §3.5 (06-dependency_analysis_v0.md) Reference: R04 §1.2 (04-reporting_infrastructure_coexistence_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
report
|
ConversionReport
|
ConversionReport with field operations to convert |
required |
Invariants
- All field operations become children of resource consequence
- UNSUPPORTED fields include "(unsupported by host)" suffix
Source code in hatch/cli/cli_utils.py
report_error(summary, details=None)
¶
Report execution failure with structured details.
Prints error message with [ERROR] prefix in bright red color (when colors enabled). Details are indented with 2 spaces for visual hierarchy.
Reference: R13 §4.2.3 (13-error_message_formatting_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
summary
|
str
|
High-level error description |
required |
details
|
Optional[List[str]]
|
Optional list of detail lines to print below summary |
None
|
Output format
[ERROR]
Example
reporter = ResultReporter("hatch env create") reporter.report_error( ... "Failed to create environment 'dev'", ... details=["Python environment creation failed: conda not available"] ... ) [ERROR] Failed to create environment 'dev' Python environment creation failed: conda not available
Source code in hatch/cli/cli_utils.py
report_partial_success(summary, successes, failures)
¶
Report mixed success/failure results with ✓/✗ symbols.
Prints warning message with [WARNING] prefix in bright yellow color. Uses ✓/✗ symbols for success/failure items (with ASCII fallback). Includes summary line showing success ratio.
Reference: R13 §4.2.3 (13-error_message_formatting_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
summary
|
str
|
High-level summary description |
required |
successes
|
List[str]
|
List of successful item descriptions |
required |
failures
|
List[Tuple[str, str]]
|
List of (item, reason) tuples for failed items |
required |
Output format
[WARNING]
✓
Example
reporter = ResultReporter("hatch mcp sync") reporter.report_partial_success( ... "Partial synchronization", ... successes=["claude-desktop (backup: ~/.hatch/backups/...)"], ... failures=[("cursor", "Config file not found")] ... ) [WARNING] Partial synchronization ✓ claude-desktop (backup: ~/.hatch/backups/...) ✗ cursor: Config file not found Summary: 1/2 succeeded
Source code in hatch/cli/cli_utils.py
report_prompt()
¶
Generate confirmation prompt (present tense, dim colors).
Output format
{command_name}: [VERB] resource message [VERB] field message [VERB] field message
Returns:
| Type | Description |
|---|---|
str
|
Formatted prompt string, empty string if no consequences. |
Invariants
- All consequences shown (including UNCHANGED, SKIP)
- Empty string if no consequences
Source code in hatch/cli/cli_utils.py
report_result()
¶
Print execution results (past tense, bright colors).
Output format
[SUCCESS] summary (or [DRY RUN] for dry-run mode) [VERB-ED] resource message [VERB-ED] field message (only changed fields)
Invariants
- UNCHANGED and SKIP fields may be omitted from result (noise reduction)
- Dry-run appends "- DRY RUN" suffix
- No output if consequences list is empty
Source code in hatch/cli/cli_utils.py
TableFormatter
¶
Aligned table output for list commands.
Renders data as aligned columns with headers and separator line. Supports fixed and auto-calculated column widths.
Reference: R06 §3.6 (06-dependency_analysis_v0.md) Reference: R02 §5 (02-list_output_format_specification_v2.md)
Attributes:
| Name | Type | Description |
|---|---|---|
columns |
List of column definitions |
Example
columns = [ ... ColumnDef(name="Name", width=20), ... ColumnDef(name="Status", width=10), ... ] formatter = TableFormatter(columns) formatter.add_row(["my-server", "active"]) print(formatter.render()) Name Status ───────────────────────────────── my-server active
Source code in hatch/cli/cli_utils.py
921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 | |
Functions¶
__init__(columns)
¶
Initialize TableFormatter with column definitions.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
columns
|
List[ColumnDef]
|
List of ColumnDef specifying table structure |
required |
add_row(values)
¶
Add a data row to the table.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
values
|
List[str]
|
List of string values, one per column |
required |
render()
¶
Render the table as a formatted string.
Returns:
| Type | Description |
|---|---|
str
|
Multi-line string with headers, separator, and data rows |
Source code in hatch/cli/cli_utils.py
ValidationError
¶
Bases: Exception
Validation error with structured context.
Provides structured error information for input validation failures, including optional field name and suggestion for resolution.
Reference: R13 §4.2.2 (13-error_message_formatting_v0.md)
Attributes:
| Name | Type | Description |
|---|---|---|
message |
Human-readable error description |
|
field |
Optional field/argument name that caused the error |
|
suggestion |
Optional suggestion for resolving the error |
Example
raise ValidationError( ... "Invalid host 'vsc'", ... field="--host", ... suggestion="Supported hosts: claude-desktop, vscode, cursor" ... )
Source code in hatch/cli/cli_utils.py
Functions¶
__init__(message, field=None, suggestion=None)
¶
Initialize ValidationError.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Human-readable error description |
required |
field
|
str
|
Optional field/argument name that caused the error |
None
|
suggestion
|
str
|
Optional suggestion for resolving the error |
None
|
Source code in hatch/cli/cli_utils.py
Functions¶
format_info(message)
¶
Print formatted info message with color.
Prints message with [INFO] prefix in bright blue color. Used for informational messages like "Operation cancelled".
Reference: R13-B §B.6.2 (13-error_message_formatting_appendix_b_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Info message to display |
required |
Output format
[INFO]
Example
from hatch.cli.cli_utils import format_info format_info("Operation cancelled") [INFO] Operation cancelled
Source code in hatch/cli/cli_utils.py
format_validation_error(error)
¶
Print formatted validation error with color.
Prints error message with [ERROR] prefix in bright red color. Optionally includes field name and suggestion if provided.
Reference: R13 §4.3 (13-error_message_formatting_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
error
|
ValidationError
|
ValidationError instance with message, field, and suggestion |
required |
Output format
[ERROR]
Example
from hatch.cli.cli_utils import ValidationError, format_validation_error format_validation_error(ValidationError( ... "Invalid host 'vsc'", ... field="--host", ... suggestion="Supported hosts: claude-desktop, vscode, cursor" ... )) [ERROR] Invalid host 'vsc' Field: --host Suggestion: Supported hosts: claude-desktop, vscode, cursor
Source code in hatch/cli/cli_utils.py
format_warning(message, suggestion=None)
¶
Print formatted warning message with color.
Prints message with [WARNING] prefix in bright yellow color. Used for non-fatal warnings that don't prevent operation completion.
Reference: R13-A §A.5 P3 (13-error_message_formatting_appendix_a_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
Warning message to display |
required |
suggestion
|
str
|
Optional suggestion for resolution |
None
|
Output format
[WARNING]
Example
from hatch.cli.cli_utils import format_warning format_warning("Invalid header format 'foo'", suggestion="Expected KEY=VALUE") [WARNING] Invalid header format 'foo' Suggestion: Expected KEY=VALUE
Source code in hatch/cli/cli_utils.py
get_hatch_version()
¶
Get Hatch version from package metadata.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Version string from package metadata, or 'unknown (development mode)' if package is not installed. |
Source code in hatch/cli/cli_utils.py
get_package_mcp_server_config(env_manager, env_name, package_name)
¶
Get MCP server configuration for a package using existing APIs.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env_manager
|
HatchEnvironmentManager
|
The environment manager instance |
required |
env_name
|
str
|
Name of the environment containing the package |
required |
package_name
|
str
|
Name of the package to get config for |
required |
Returns:
| Name | Type | Description |
|---|---|---|
MCPServerConfig |
MCPServerConfig
|
Server configuration for the package |
Raises:
| Type | Description |
|---|---|
ValueError
|
If package not found, not a Hatch package, or has no MCP entry point |
Source code in hatch/cli/cli_utils.py
1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 | |
highlight(text)
¶
Apply highlight formatting (bold + amber) to entity names.
Used in show commands to emphasize host and server names for quick visual scanning of detailed output.
Reference: R12 §3.3 (12-enhancing_colors_v0.md) Reference: R11 §3.2 (11-enhancing_show_command_v0.md)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
text
|
str
|
The entity name to highlight |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Text with bold + amber formatting if colors enabled, otherwise plain text. |
Example
print(f"MCP Host: {highlight('claude-desktop')}") MCP Host: claude-desktop # (bold + amber in TTY)
Source code in hatch/cli/cli_utils.py
parse_env_vars(env_list)
¶
Parse environment variables from command line format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
env_list
|
Optional[list]
|
List of strings in KEY=VALUE format |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
Dictionary of environment variable key-value pairs |
Source code in hatch/cli/cli_utils.py
parse_header(header_list)
¶
Parse HTTP headers from command line format.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
header_list
|
Optional[list]
|
List of strings in KEY=VALUE format |
required |
Returns:
| Name | Type | Description |
|---|---|---|
dict |
dict
|
Dictionary of header key-value pairs |
Source code in hatch/cli/cli_utils.py
parse_host_list(host_arg)
¶
Parse comma-separated host list or 'all'.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
host_arg
|
str
|
Comma-separated host names or 'all' for all available hosts |
required |
Returns:
| Type | Description |
|---|---|
List[str]
|
List[str]: List of host name strings |
Raises:
| Type | Description |
|---|---|
ValueError
|
If an unknown host name is provided |
Source code in hatch/cli/cli_utils.py
parse_input(input_list)
¶
Parse VS Code input variable definitions from command line format.
Format: type,id,description[,password=true] Example: promptString,api-key,GitHub Personal Access Token,password=true
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input_list
|
Optional[list]
|
List of input definition strings |
required |
Returns:
| Type | Description |
|---|---|
Optional[list]
|
List of input variable definition dictionaries, or None if no inputs provided. |
Source code in hatch/cli/cli_utils.py
request_confirmation(message, auto_approve=False)
¶
Request user confirmation with non-TTY support following Hatch patterns.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
message
|
str
|
The confirmation message to display |
required |
auto_approve
|
bool
|
If True, automatically approve without prompting |
False
|
Returns:
| Name | Type | Description |
|---|---|---|
bool |
bool
|
True if confirmed, False otherwise |