Skip to main content

render_table

Function render_table 

Source
pub fn render_table(
    worktrees: &[Worktree],
    columns: &[Column],
    ctx: &RenderCtx<'_>,
    width: usize,
    color: bool,
) -> String
Expand description

Renders the worktrees as an aligned table for the given columns and terminal width. ANSI color is applied to status/dirty/PR cells when color is set.