vtcode-core 0.104.1

Core library for VT Code - a Rust-based terminal coding agent
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub(crate) struct ProgressMarker {
    display: String,
}

impl ProgressMarker {
    pub(crate) fn new(current: usize, total: usize) -> Self {
        Self {
            display: format!("[{current}/{total}]"),
        }
    }

    pub(crate) fn annotate(&self, detail: &str) -> String {
        format!("{} {}", self.display, detail)
    }
}