Added version command
This commit is contained in:
@@ -18,3 +18,21 @@ pub fn setup_command() {
|
||||
// initialize the video repository
|
||||
r.initialize();
|
||||
}
|
||||
|
||||
pub fn version_command() {
|
||||
println!("===================================================================================");
|
||||
|
||||
// output the program and version
|
||||
println!("Zealot version v{}", env!("CARGO_PKG_VERSION"));
|
||||
|
||||
// output project description
|
||||
println!("{}", env!("CARGO_PKG_DESCRIPTION"));
|
||||
|
||||
// display license info
|
||||
println!("\nThis code is licensed under the {} license.", env!("CARGO_PKG_LICENSE"));
|
||||
|
||||
// output the project source URL
|
||||
println!("View the source code or file issues at {}.", env!("CARGO_PKG_REPOSITORY"));
|
||||
|
||||
println!("===================================================================================");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user