carlo_version/lib.rs
1//! Defines the VERSION subcommand.
2
3use carlotk::prelude::*;
4
5/// Help menu
6const HELP: &str = include_str!("../help_version.txt");
7
8/// Provide help to the user
9pub fn helpme() {
10 printhelp(HELP);
11}
12
13pub fn version(_args: CliArgs) {
14 println!("{}", "The Carlo Language".truecolor(20, 146, 255).bold());
15 println!("Version {}", VERSION);
16}