Class JBangCatalogService

java.lang.Object
io.quarkus.cli.plugin.CatalogService<JBangCatalog>
io.quarkus.cli.plugin.JBangCatalogService

public class JBangCatalogService extends CatalogService<JBangCatalog>
  • Constructor Details

    • JBangCatalogService

      public JBangCatalogService(io.quarkus.devtools.messagewriter.MessageWriter output)
    • JBangCatalogService

      public JBangCatalogService(io.quarkus.devtools.messagewriter.MessageWriter output, String pluginPrefix, String fallbackCatalog, String... remoteCatalogs)
    • JBangCatalogService

      public JBangCatalogService(boolean interactiveMode, io.quarkus.devtools.messagewriter.MessageWriter output, String pluginPrefix, String fallbackCatalog, String... remoteCatalogs)
  • Method Details

    • ensureJBangIsInstalled

      public boolean ensureJBangIsInstalled()
    • readCatalog

      public JBangCatalog readCatalog(Path path)
      Description copied from class: CatalogService
      Read the catalog from the specified path.
      Overrides:
      readCatalog in class CatalogService<JBangCatalog>
      Parameters:
      path - the path to read the catalog from.
      Returns:
      the catalog
    • readCombinedCatalog

      public JBangCatalog readCombinedCatalog(Optional<Path> projectDir, Optional<Path> userDir)
      Read the JBangCatalog from project or fallback to global catalog.
      Parameters:
      projectDir - An optional path pointing to the project directory.
      output - an
      invalid reference
      OutputOptionMixin
      that can be used for tests to substitute current dir with a test directory.
      userdir - An optional path pointing to the user directory
      Returns:
      the catalog