Class JBangSupport


  • public class JBangSupport
    extends Object
    • 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

      • findExecutableInPath

        public Optional<File> findExecutableInPath()
      • findExecutableInLocalJbang

        public Optional<File> findExecutableInLocalJbang()
      • getOptionalExecutable

        public Optional<File> getOptionalExecutable()
      • 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.