Package io.quarkus.cli.plugin
Class PluginCatalogService
-
Field Summary
Fields inherited from class io.quarkus.cli.plugin.CatalogService
catalogType, EXISTS_AND_WRITABLE, GIT_ROOT, HAS_BUILD_GRADLE, HAS_POM_XML, IS_ELIGIBLE_PROJECT_ROOT, IS_USER_HOME, objectMapper, projectRoot, relativePath, USER_HOME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreadCombinedCatalog(Optional<Path> proejctDir, Optional<Path> userDir) Read thePluginCatalogfrom project or fallback to global catalog.readProjectCatalog(Optional<Path> dir) readUserCatalog(Optional<Path> userDir) Reads the plguin catalog from the user home.Methods inherited from class io.quarkus.cli.plugin.CatalogService
findProjectCatalogPath, findProjectCatalogPath, findProjectRoot, getCatalogPath, getRelativeCatalogPath, getRelativeCatalogPath, getUserCatalogPath, getUserCatalogPath, readCatalog, readCatalog, writeCatalog
-
Constructor Details
-
PluginCatalogService
public PluginCatalogService() -
PluginCatalogService
-
PluginCatalogService
-
-
Method Details
-
readUserCatalog
Description copied from class:CatalogServiceReads the plguin catalog from the user home.- Overrides:
readUserCatalogin classCatalogService<PluginCatalog>- Returns:
- a catalog wrapped in optional or empty if the catalog is not present.
-
readProjectCatalog
- Overrides:
readProjectCatalogin classCatalogService<PluginCatalog>
-
readCombinedCatalog
Read thePluginCatalogfrom project or fallback to global catalog.- Parameters:
output- anthat can be used for tests to substitute current dir with a test directory.invalid reference
OutputOptionMixinprojectDir- An optional path pointing to the project directory.userdir- An optional path pointing to the user directory- Returns:
- the catalog
-