shep 0.8.4

The shep binary: a process manager that keeps a flock of long-running processes alive on macOS, Linux and Windows, with logs, watch and cron restarts, and webhook alerts
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
//! Fixtures and helpers shared by this module's tests.

use super::super::app::App;
use super::paint_frame::draw;
use ratatui::Terminal;
use ratatui::backend::TestBackend;

pub(super) fn draw_to(app: &App, width: u16, height: u16) -> String {
    let mut terminal = Terminal::new(TestBackend::new(width, height)).unwrap();
    terminal.draw(|frame| draw(app, frame)).unwrap();
    crate::lookout::frames::render_text(terminal.backend().buffer())
}