Safe.IO (mix_safe v1.0.0)

Copy Markdown View Source

Terminal output helpers and interactive prompts for the SAFE Mix task.

  • Status messages in bold green
  • Error messages in bold red
  • Interactive prompts in blue

Summary

Functions

Prints an interactive yes/no prompt and returns true if the user answers "y", "yes", or presses Enter (case-insensitive). Returns false for "n", "no", and other non-affirmative input.

Prints a bold red error line.

Prints a plain informational line (no colour).

Prints a bold green status line (e.g. '* running SAFE fingerprint').

Functions

bool_prompt(message)

Prints an interactive yes/no prompt and returns true if the user answers "y", "yes", or presses Enter (case-insensitive). Returns false for "n", "no", and other non-affirmative input.