Package io.quarkus.cli.plugin
Class JBangSupport
- java.lang.Object
-
- io.quarkus.cli.plugin.JBangSupport
-
public class JBangSupport extends Object
-
-
Constructor Summary
Constructors Constructor Description JBangSupport(boolean interactiveMode, io.quarkus.devtools.messagewriter.MessageWriter output)JBangSupport(boolean interactiveMode, io.quarkus.devtools.messagewriter.MessageWriter output, Path workingDirectory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanensureJBangIsInstalled()Checks id jbang is installed and prompot user for installation.List<String>execute(String... args)Optional<File>findExecutableInLocalJbang()Optional<File>findExecutableInPath()Optional<File>findWrapper()List<String>getCommand()FilegetExecutable()Optional<File>getOptionalExecutable()Optional<File>getOptionalExecutable(boolean shouldEnsureInstallation)PathgetWorkingDirectory()booleanisAvailable()booleanisInstallable()booleanpromptForInstallation()Optional<String>version()
-
-
-
Constructor Detail
-
JBangSupport
public JBangSupport(boolean interactiveMode, io.quarkus.devtools.messagewriter.MessageWriter output)
-
JBangSupport
public JBangSupport(boolean interactiveMode, io.quarkus.devtools.messagewriter.MessageWriter output, Path workingDirectory)
-
-
Method Detail
-
getOptionalExecutable
public Optional<File> getOptionalExecutable(boolean shouldEnsureInstallation)
-
getExecutable
public File getExecutable()
-
getWorkingDirectory
public Path getWorkingDirectory()
-
isAvailable
public boolean isAvailable()
-
isInstallable
public boolean isInstallable()
-
promptForInstallation
public boolean promptForInstallation()
-
ensureJBangIsInstalled
public boolean ensureJBangIsInstalled()
Checks id jbang is installed and prompot user for installation. Remembers choice so that we don't prompt user multiple times per action.
-
-