Skip to main content

zoi_cli/cmd/
version.rs

1//! Logic for the `version` command.
2
3use colored::Colorize;
4
5use crate::utils;
6
7/// Run the version command.
8pub fn run(branch: &str, status: &str, number: &str, commit: &str) {
9    println!("{} Zoi version information", "::".bold().blue());
10    utils::print_info("Branch", branch);
11    utils::print_info("Status", status);
12    utils::print_info("Number", number);
13    utils::print_info("Commit", commit.green());
14}