or run

npx @tessl/cli init
Log in

Version

Files

docs

advanced-colors.mdbackground-colors.mdbasic-colors.mdcolor-support.mdconfiguration.mdindex.mdtext-styling.md
tile.json

task.mdevals/scenario-1/

Terminal Emphasis Formatter

Create helper functions that assemble styled terminal strings for announcements, statuses, and short notes using terminal text emphasis effects.

Capabilities

Announcement block

  • formatHeader("Maintenance", "Reboot at 02:00 UTC") returns two lines: a title line rendered with strong emphasis and a visible line beneath it, followed by a detail line that is visibly softened without losing readability. @test

Status line highlighting

  • formatStatus("warning", "Disk at 90%") returns a single line that prefixes the message with a highlighted status label and a separator, while keeping the detail readable but secondary. @test
  • formatStatus("retired", "Legacy importer") returns a single line where the status label appears clearly crossed out while the detail remains unstyled. @test

Styled notes list

  • renderNotes([{ label: "Tip", text: "Use --dry-run" }, { label: "Note", text: "Logs at ~/.cache" }]) returns two newline-separated bullet items; each label uses gentle emphasis, each note is muted, and styling does not bleed between lines. @test

Implementation

@generates

API

export function formatHeader(title, detail): string;
export function formatStatus(status, detail): string;
export function renderNotes(items): string;

Dependencies { .dependencies }

chalk { .dependency }

Provides terminal text styling helpers.