Class PluginManagerSettings


  • public class PluginManagerSettings
    extends Object
    Settings class for the PluginManager. The PluginManager can be used beyond the Quarkus CLI. Users are able to build extensible CLI apps using the PluginManager with customized settings.
    • Field Detail

      • DEFAULT_PLUGIN_PREFIX

        public static String DEFAULT_PLUGIN_PREFIX
      • FALLBACK_REMOTE_JBANG_CATALOG

        public static String FALLBACK_REMOTE_JBANG_CATALOG
      • DEFAULT_REMOTE_JBANG_CATALOGS

        public static String[] DEFAULT_REMOTE_JBANG_CATALOGS
      • DEFAULT_RELATIVE_PATH_FUNC

        public static Function<Path,​Path> DEFAULT_RELATIVE_PATH_FUNC
    • Constructor Detail

      • PluginManagerSettings

        public PluginManagerSettings​(boolean interactiveMode,
                                     String pluginPrefix,
                                     String fallbackJBangCatalog,
                                     String[] remoteJBangCatalogs,
                                     Function<Path,​Path> toRelativePath)
    • Method Detail

      • getPluginPrefix

        public String getPluginPrefix()
        The prefix of the Plugin. This value is used to strip the prefix for the location when creating the name.
        Returns:
        the prefix.
      • getFallbackJBangCatalog

        public String getFallbackJBangCatalog()
        The name of the fallback JBang catalogs to get plugins from.
        Returns:
        the name of the catalog.
      • getRemoteJBangCatalogs

        public String[] getRemoteJBangCatalogs()
        The names of the JBang catalogs to get plugins from.
        Returns:
        the name of the catalog.
      • isInteractiveMode

        public boolean isInteractiveMode()
      • getToRelativePath

        public Function<Path,​Path> getToRelativePath()
        A Function from getting the relative path to the catalog. For example: `~ -> ~/.quarkus/cli/plugins/quarkus-cli-catalog.json`.
        Returns:
        the path.