Introduce Examples class with comprehensive demos and enhance table/log functionalities

- Add `Examples` class showcasing extensive usage of terminal-ui components (e.g., tables, logs, heatmaps, charts, and trees).
- Extend `Table` API with `rows` and `fromRows` methods for batch row addition and simplified table creation.
- Enhance `Log` component with a `minLevel` filtering feature for selective log visibility.
- Update `build.gradle.kts` to set `Examples` class as the main application entry point.
- Expand `Examples.md` documentation with new examples, including table rows and filtered logs.
This commit is contained in:
!verity
2026-03-14 11:52:42 +01:00
parent 97a43d9850
commit b17b278840
5 changed files with 299 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ plugins {
id("maven-publish")
}
application {
mainClass.set("dev.jakub.terminal.example.Examples")
}
tasks.named<JavaExec>("run") {
jvmArgs("-Ddev.jakub.terminal.ansi=true", "-Dfile.encoding=UTF-8")
}