dvm 1.9.3

Deno Version Manager - Easy way to manage multiple active deno versions.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::utils;
use crate::version;
use anyhow::Result;
use std::string::String;

pub fn exec() -> Result<()> {
  println!(
    "dvm {}\ndeno {}\ndvm root {}",
    version::DVM,
    version::current_version().unwrap_or_else(|| String::from("-")),
    utils::dvm_root().as_path().to_string_lossy(),
  );
  Ok(())
}