codewhale-tui 0.9.6

Terminal UI for open-source and open-weight coding models
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use codewhale_config::{StepEntry, StepStatus};

pub(super) fn step_status(provider_ready: bool) -> StepStatus {
    if provider_ready {
        StepStatus::Verified
    } else {
        StepStatus::NeedsAction
    }
}

pub(super) fn step_entry(
    provider_ready: bool,
    checkpoint_version: &str,
    result: impl Into<String>,
) -> StepEntry {
    StepEntry::new(step_status(provider_ready), true, checkpoint_version).with_result(result.into())
}