ratto 0.9.0

Ratatui-powered terminal primitives for shell dashboards: flicker-free repaints, progress bars, prompts, and portable time tools
// Nesting, both ways at once. Run from a git repository, with this
// branch's rat on PATH:
//
//   rat dashboard examples/panes-nested.kdl
//
// 1. Nested LAYOUT: rows and columns nest to any depth — here a row
//    holds two columns, giving a grid in ONE dashboard where every
//    pane keeps its own cadence.
// 2. A nested DASHBOARD: a pane may run `rat dashboard … --once` as
//    its child; the inner one-shot sizes itself to the pane through
//    the handed-down RAT_WIDTH/RAT_HEIGHT. (A live inner dashboard
//    needs streaming children — a later chapter.)

gap 1

defaults interval="5s" border="rounded" padding="0 1" height=7

row {
    column {
        pane "log" {
            command "git" "log" "--oneline" "-3"
            interval "15s"
        }
        pane "branch" {
            command "git" "status" "--short" "--branch"
        }
    }
    column {
        pane "clock" {
            command "date" "+%H:%M:%S"
            interval "1s"
            height 4
        }
    }
}

row {
    pane "nested" {
        command "rat" "dashboard" "examples/panes.kdl" "--once"
        height 15
    }
}