Rename list() to list_endpoints()
This commit is contained in:
parent
4abc08a34b
commit
fb2fc57715
1 changed files with 2 additions and 2 deletions
|
|
@ -82,14 +82,14 @@ fn main() -> Result<(), anyhow::Error> {
|
||||||
env_logger::init();
|
env_logger::init();
|
||||||
let opts = Opts::parse();
|
let opts = Opts::parse();
|
||||||
match &opts.command {
|
match &opts.command {
|
||||||
Command::Endpoints => list(&opts)?,
|
Command::Endpoints => list_endpoints(&opts)?,
|
||||||
Command::Config(get_config_opts) => get_config(&opts, &get_config_opts)?,
|
Command::Config(get_config_opts) => get_config(&opts, &get_config_opts)?,
|
||||||
Command::Check => check(&opts)?,
|
Command::Check => check(&opts)?,
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn list(opts: &Opts) -> Result<(), anyhow::Error> {
|
fn list_endpoints(opts: &Opts) -> Result<(), anyhow::Error> {
|
||||||
let locations: Locations = get_locations()?;
|
let locations: Locations = get_locations()?;
|
||||||
if opts.json {
|
if opts.json {
|
||||||
println!("{}", serde_json::to_string(&locations)?);
|
println!("{}", serde_json::to_string(&locations)?);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue