Add --eval flag to solana-install info

This commit is contained in:
Michael Vines
2020-10-20 12:09:12 -07:00
committed by mergify[bot]
parent f71677164f
commit 6f930351d2
2 changed files with 21 additions and 3 deletions

View File

@@ -160,6 +160,11 @@ pub fn main() -> Result<(), String> {
.help(
"only display local information, don't check the cluster for new updates",
),
)
.arg(
Arg::with_name("eval")
.long("eval")
.help("display information in a format that can be used with `eval`"),
),
)
.subcommand(
@@ -234,7 +239,8 @@ pub fn main() -> Result<(), String> {
("init", Some(matches)) => handle_init(&matches, &config_file),
("info", Some(matches)) => {
let local_info_only = matches.is_present("local_info_only");
command::info(config_file, local_info_only).map(|_| ())
let eval = matches.is_present("eval");
command::info(config_file, local_info_only, eval).map(|_| ())
}
("deploy", Some(matches)) => {
let from_keypair_file = matches.value_of("from_keypair_file").unwrap();