Package io.quarkus.cli.plugin
Class PluginManagerSettings
- java.lang.Object
-
- io.quarkus.cli.plugin.PluginManagerSettings
-
public class PluginManagerSettings extends Object
Settings class for thePluginManager. ThePluginManagercan be used beyond the Quarkus CLI. Users are able to build extensible CLI apps using thePluginManagerwith customized settings.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PLUGIN_PREFIXstatic Function<Path,Path>DEFAULT_RELATIVE_PATH_FUNCstatic String[]DEFAULT_REMOTE_JBANG_CATALOGSstatic StringFALLBACK_REMOTE_JBANG_CATALOG
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PluginManagerSettingsdefaultSettings()StringgetFallbackJBangCatalog()The name of the fallback JBang catalogs to get plugins from.StringgetPluginPrefix()The prefix of thePlugin.String[]getRemoteJBangCatalogs()The names of the JBang catalogs to get plugins from.Function<Path,Path>getToRelativePath()AFunctionfrom getting the relative path to the catalog.booleanisInteractiveMode()PluginManagerSettingswithCatalogs(String... remoteJBangCatalogs)PluginManagerSettingswithCatalogs(Set<String> remoteJBangCatalogs)PluginManagerSettingswithInteractivetMode(boolean interactiveMode)PluginManagerSettingswithPluignPrefix(String pluginPrefix)
-
-
-
Method Detail
-
defaultSettings
public static PluginManagerSettings defaultSettings()
-
withPluignPrefix
public PluginManagerSettings withPluignPrefix(String pluginPrefix)
-
withCatalogs
public PluginManagerSettings withCatalogs(Set<String> remoteJBangCatalogs)
-
withCatalogs
public PluginManagerSettings withCatalogs(String... remoteJBangCatalogs)
-
withInteractivetMode
public PluginManagerSettings withInteractivetMode(boolean interactiveMode)
-
getPluginPrefix
public String getPluginPrefix()
The prefix of thePlugin. 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()
-
-