~/greynoise-cli

72d657f0f643f0bcdd53393ce1247efa68e81085 — Arthur Melton 729b6cc7 2 years ago
riot get
3 files changed, 4 insertions(+), 1 deletions(-)

M Cargo.lock
M src/args.rs
M src/main.rs
M Cargo.lock => Cargo.lock +1 -1
@@ 132,7 132,7 @@ dependencies = [


[[package]]
name = "gn"
version = "0.1.0"
version = "1.0.0"
dependencies = [
 "clap",
 "lazy_static",

M src/args.rs => src/args.rs +2 -0
@@ 108,6 108,8 @@ pub enum NoiseWeb {


#[derive(Subcommand, Clone)]
pub enum RiotCommand {
    /// If the ip has o riot
    Get,
    /// Get what the ip is used for
    Category,
    /// The name of the company / person that operates the ip

M src/main.rs => src/main.rs +1 -0
@@ 106,6 106,7 @@ fn main() {

                    },
                },
                Commands::Riot(riot) => match riot {
                    RiotCommand::Get => println!("{}", data.metadata.riot.found),
                    RiotCommand::Category => print_value_maybe_none(data.riotProfile.category, "riot"),
                    RiotCommand::Name => print_value_maybe_none(data.riotProfile.name, "riot"),
                    RiotCommand::Description => print_value_maybe_none(data.riotProfile.description, "riot"),