noora-static-and-styled-tables
Noora Static And Styled Tables
Use this skill when a Swift CLI needs tabular output that the user reads but does not navigate interactively.
Plain Table Pattern
import Noora
Noora().table(
headers: ["Setting", "Value", "Source"],
rows: [
["project", "demo-app", "prompt"],
["language", "Swift", "package"],
["ui", "Noora", "dependency"],
]
)
Styled Table Pattern
let headers: [TableCellStyle] = [
.primary("Area"),
.secondary("Status"),
.muted("Latency"),
.accent("Owner"),
]
let rows: [StyledTableRow] = [
[.plain("Parsing"), .success("Healthy"), .plain("12 ms"), .plain("CLI core")],
[.plain("Networking"), .warning("Degraded"), .plain("180 ms"), .plain("HTTP client")],
[.plain("Caching"), .danger("Cold"), .plain("n/a"), .plain("Storage layer")],
]
Noora().table(headers: headers, rows: rows)
Guidance
- Keep columns tight and readable.
- Use semantic styling only where it improves scanability, especially status columns.
- Prefer plain tables for stable factual output and styled tables for status-heavy output.
Avoid
- Turning every cell into a colored value.
- Using very wide free-text columns that break terminal readability.
More from spqw/skills-noora
noora-alerts
Use when building Noora warning, success, error, or info alerts in a Swift CLI. Covers choosing alert type, structuring takeaways, and using `TerminalText` interpolation inside alert copy.
1noora-progress-step
Use when a Swift CLI needs a spinner-style Noora progress step for an async operation. Covers `progressStep`, optional status updates, success and error messages, and sequencing multiple steps.
1noora-text-formatting
Use when composing or formatting Noora `TerminalText` in a Swift CLI. Covers semantic text components such as commands, links, paths, and themed text, plus `Noora().format(...)`.
1noora-collapsible-step
Use when a Swift CLI needs Noora to stream multiple log lines during a task and collapse them on success or failure. Covers `collapsibleStep`, `visibleLines`, and writing readable progress lines.
1noora-text-prompt
Use when gathering free-form text input with Noora in a Swift CLI. Covers `textPrompt`, default values, collapse behavior, and validation rules such as `NonEmptyValidationRule`.
1noora-interactive-tables
Use when building interactive Noora tables in a Swift CLI. Covers selectable tables, paginated tables, lazy paginated loading, updating tables from async sequences, and TTY constraints.
1