commands: using Nym banner on client start
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
use crate::banner;
|
||||
use crate::clients::NymClient;
|
||||
use crate::identity::mixnet;
|
||||
use crate::persistence::pathfinder::Pathfinder;
|
||||
@@ -5,6 +6,8 @@ use crate::persistence::pemstore::PemStore;
|
||||
use clap::ArgMatches;
|
||||
|
||||
pub fn execute(matches: &ArgMatches) {
|
||||
println!("{}", banner());
|
||||
|
||||
let is_local = matches.is_present("local");
|
||||
|
||||
let id = matches.value_of("id").unwrap().to_string();
|
||||
|
||||
@@ -4,6 +4,8 @@ use clap::ArgMatches;
|
||||
use std::net::ToSocketAddrs;
|
||||
|
||||
pub fn execute(matches: &ArgMatches) {
|
||||
println!("{}", banner());
|
||||
|
||||
let port = match matches.value_of("port").unwrap().parse::<u16>() {
|
||||
Ok(n) => n,
|
||||
Err(err) => panic!("Invalid port value provided - {:?}", err),
|
||||
|
||||
Reference in New Issue
Block a user