diff --git a/src/main.rs b/src/main.rs index 365884c..00d0cb5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -82,14 +82,14 @@ fn main() -> Result<(), anyhow::Error> { env_logger::init(); let opts = Opts::parse(); match &opts.command { - Command::Endpoints => list(&opts)?, + Command::Endpoints => list_endpoints(&opts)?, Command::Config(get_config_opts) => get_config(&opts, &get_config_opts)?, Command::Check => check(&opts)?, } Ok(()) } -fn list(opts: &Opts) -> Result<(), anyhow::Error> { +fn list_endpoints(opts: &Opts) -> Result<(), anyhow::Error> { let locations: Locations = get_locations()?; if opts.json { println!("{}", serde_json::to_string(&locations)?);