From bbe7d68659c84fd138cf1476b60e6712d9e0288e Mon Sep 17 00:00:00 2001 From: Odin Dutton Date: Mon, 26 Aug 2019 15:32:45 +1000 Subject: [PATCH] Return version from clap This is what `nu --version` uses. --- src/commands/version.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/version.rs b/src/commands/version.rs index 06653ae20..e13017ab5 100644 --- a/src/commands/version.rs +++ b/src/commands/version.rs @@ -5,8 +5,6 @@ use crate::parser::registry::Signature; use crate::prelude::*; use indexmap::IndexMap; -const VERSION: &'static str = env!("CARGO_PKG_VERSION"); - pub struct Version; impl WholeStreamCommand for Version { @@ -34,7 +32,7 @@ pub fn date(args: CommandArgs, registry: &CommandRegistry) -> Result