Package io.quarkus.cli.plugin
Class JBangCatalogService
- java.lang.Object
-
- io.quarkus.cli.plugin.CatalogService<JBangCatalog>
-
- io.quarkus.cli.plugin.JBangCatalogService
-
public class JBangCatalogService extends CatalogService<JBangCatalog>
-
-
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 Constructor Description JBangCatalogService(boolean interactiveMode, io.quarkus.devtools.messagewriter.MessageWriter output, String pluginPrefix, String fallbackCatalog, String... remoteCatalogs)JBangCatalogService(io.quarkus.devtools.messagewriter.MessageWriter output)JBangCatalogService(io.quarkus.devtools.messagewriter.MessageWriter output, String pluginPrefix, String fallbackCatalog, String... remoteCatalogs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JBangCatalogreadCatalog(Path path)Read the catalog from the specified path.JBangCatalogreadCombinedCatalog(Optional<Path> projectDir, Optional<Path> userDir)Read theJBangCatalogfrom project or fallback to global catalog.-
Methods inherited from class io.quarkus.cli.plugin.CatalogService
findProjectCatalogPath, findProjectCatalogPath, findProjectRoot, getCatalogPath, getRelativeCatalogPath, getRelativeCatalogPath, getUserCatalogPath, getUserCatalogPath, readCatalog, readProjectCatalog, readUserCatalog, writeCatalog
-
-
-
-
Method Detail
-
readCatalog
public JBangCatalog readCatalog(Path path)
Description copied from class:CatalogServiceRead the catalog from the specified path.- Overrides:
readCatalogin classCatalogService<JBangCatalog>- Parameters:
path- the path to read the catalog from.- Returns:
- the catalog
-
readCombinedCatalog
public JBangCatalog readCombinedCatalog(Optional<Path> projectDir, Optional<Path> userDir)
Read theJBangCatalogfrom project or fallback to global catalog.- Parameters:
ouput- anOutputOptionMixinthat can be used for tests to substitute current dir with a test directory.projectDir- An optional path pointing to the project directory.userdir- An optional path pointing to the user directory- Returns:
- the catalog
-
-