Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 9f8adec

Browse files
committed
Rename project catalog commands
- Order to make commands using same format remove dash from commands essentially making `project-catalog` to `project catalog` - Same with sub command `list-available` to available` - Fixes #198
1 parent 39eee23 commit 9f8adec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/springframework/cli/command/ProjectCatalogCommands.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
import org.springframework.util.ObjectUtils;
5252
import org.springframework.util.StringUtils;
5353

54-
@Command(command = "project-catalog", group = "Project Catalog")
54+
@Command(command = "project catalog", group = "Project Catalog")
5555
public class ProjectCatalogCommands extends AbstractSpringCliCommands {
5656

5757
private static final Logger logger = LoggerFactory.getLogger(ProjectCatalogCommands.class);
@@ -76,7 +76,7 @@ public ProjectCatalogCommands(SpringCliUserConfig springCliUserConfig,
7676
this.objectMapper = objectMapper;
7777
}
7878

79-
@Command(command = "list-available", description = "List available catalogs")
79+
@Command(command = "available", description = "List available catalogs")
8080
public Object catalogListAvailable(
8181
@Option(description = "JSON format output", required = false, defaultValue = "false") boolean json)
8282
throws JsonProcessingException {

0 commit comments

Comments
 (0)