summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 3470503..1bba3d3 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -189,6 +189,24 @@ pub fn cli<'a>() -> App<'a> {
.help("The name of the package")
)
)
+ .subcommand(App::new("env-of")
+ .alias("env")
+ .about("Show the ENV configured for a package")
+ .arg(Arg::with_name("package_name")
+ .required(true)
+ .multiple(false)
+ .index(1)
+ .value_name("PACKAGE_NAME")
+ .help("The name of the package")
+ )
+ .arg(Arg::with_name("package_version_constraint")
+ .required(false)
+ .multiple(false)
+ .index(2)
+ .value_name("VERSION_CONSTRAINT")
+ .help("A version constraint to search for (optional)")
+ )
+ )
}