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();
|
||||
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)?);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue