Add CLI update check and API client kind identity

This commit is contained in:
Gregory Schier
2026-03-02 06:21:00 -08:00
parent f302dc39a2
commit 96e8572758
14 changed files with 280 additions and 30 deletions

View File

@@ -17,6 +17,14 @@ pub fn warning(message: &str) {
}
}
pub fn warning_stderr(message: &str) {
if io::stderr().is_terminal() {
eprintln!("{:<8} {}", style("WARNING").yellow().bold(), style(message).yellow());
} else {
eprintln!("WARNING {message}");
}
}
pub fn success(message: &str) {
if io::stdout().is_terminal() {
println!("{:<8} {}", style("SUCCESS").green().bold(), style(message).green());