Package io.quarkus.cli.plugin
Class JBangCatalogService
-
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
ConstructorsConstructorDescriptionJBangCatalogService(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
Modifier and TypeMethodDescriptionbooleanreadCatalog(Path path) Read the catalog from the specified path.readCombinedCatalog(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
-
Constructor Details
-
JBangCatalogService
public JBangCatalogService(io.quarkus.devtools.messagewriter.MessageWriter output) -
JBangCatalogService
-
JBangCatalogService
-
-
Method Details
-
ensureJBangIsInstalled
public boolean ensureJBangIsInstalled() -
readCatalog
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
Read theJBangCatalogfrom project or fallback to global catalog.- Parameters:
projectDir- An optional path pointing to the project directory.output- anthat can be used for tests to substitute current dir with a test directory.invalid reference
OutputOptionMixinuserdir- An optional path pointing to the user directory- Returns:
- the catalog
-