Rename "repo list" command to "catalog"

The official Docker Registry V2 API calls the commmand to list the repositories
the "catalog", so to keep things as consistent as possible and not invent new
names for things that have meaning in the domain, stick with the same naming
convention.
This commit is contained in:
Anthony Oteri
2023-09-14 09:24:09 -04:00
parent 0a112ed56f
commit 00a1ad87e7
4 changed files with 13 additions and 43 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ async fn main() -> Result<(), DredgeError> {
let config = Config::try_from(config_file.as_ref())?;
match args.command {
Commands::Repo(repo_args) => commands::repo::handler(&config, &repo_args).await?,
Commands::Catalog => commands::catalog::handler(&config).await?,
}
Ok(())