diff options
Diffstat (limited to 'src/system_info.rs')
-rw-r--r-- | src/system_info.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/system_info.rs b/src/system_info.rs index 2079ea7..47ed0f9 100644 --- a/src/system_info.rs +++ b/src/system_info.rs @@ -5,6 +5,7 @@ use std; use users; use power; +use vcs; pub fn hostname() -> Option<String> { hostname::get_hostname() @@ -44,3 +45,7 @@ pub fn time() -> chrono::DateTime<chrono::Local> { pub fn power_info() -> power::PowerInfo { power::PowerInfo::new() } + +pub fn vcs_info() -> Option<Box<vcs::VcsInfo>> { + vcs::detect() +} |