Package io.quarkus.cli.plugin
Class PluginManagerSettings
java.lang.Object
io.quarkus.cli.plugin.PluginManagerSettings
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PluginManagerSettingsThe name of the fallback JBang catalogs to get plugins from.The prefix of thePlugin.String[]The names of the JBang catalogs to get plugins from.AFunctionfrom getting the relative path to the catalog.booleanwithCatalogs(String... remoteJBangCatalogs) withCatalogs(Set<String> remoteJBangCatalogs) withInteractivetMode(boolean interactiveMode) withPluignPrefix(String pluginPrefix)
-
Field Details
-
DEFAULT_PLUGIN_PREFIX
-
FALLBACK_REMOTE_JBANG_CATALOG
-
DEFAULT_REMOTE_JBANG_CATALOGS
-
DEFAULT_RELATIVE_PATH_FUNC
-
-
Constructor Details
-
PluginManagerSettings
-
-
Method Details
-
defaultSettings
-
withPluignPrefix
-
withCatalogs
-
withCatalogs
-
withInteractivetMode
-
getPluginPrefix
The prefix of thePlugin. This value is used to strip the prefix for the location when creating the name.- Returns:
- the prefix.
-
getFallbackJBangCatalog
The name of the fallback JBang catalogs to get plugins from.- Returns:
- the name of the catalog.
-
getRemoteJBangCatalogs
The names of the JBang catalogs to get plugins from.- Returns:
- the name of the catalog.
-
isInteractiveMode
public boolean isInteractiveMode() -
getToRelativePath
AFunctionfrom getting the relative path to the catalog. For example: `~ -> ~/.quarkus/cli/plugins/quarkus-cli-catalog.json`.- Returns:
- the path.
-