Skip to main content

Module utils

Module utils 

Source
Expand description

Common utility functions.

This module provides utility functions for command-line interface operations:

  • Shell command parsing
  • Text truncation for display
  • Secret redaction for logging

Functionsยง

format_argv_for_log
Format argv for logs, redacting likely secrets.
split_command
Split a shell-like command string into argv parts.
truncate_text
Truncate text to a limit with ellipsis.