Interface CliProvider


public interface CliProvider
Service provider interface to expose CLI capabilities to API layer.
  • Method Summary

    Modifier and Type
    Method
    Description
    getApplyRevertCommand(Path installationPath, Path candidatePath, boolean noConflictsOnly)
    generates command used to apply a revert candidate in candidatePath into installationPath
    getApplyUpdateCommand(Path installationPath, Path candidatePath, boolean noConflictsOnly)
    generates command used to apply an update candidate in candidatePath into installationPath
    getScriptName(org.wildfly.installationmanager.spi.OsShell shell)
    returns the script name used to run Prospero.
  • Method Details

    • getScriptName

      String getScriptName(org.wildfly.installationmanager.spi.OsShell shell)
      returns the script name used to run Prospero. The returned script is OS-specific.
      Parameters:
      shell -
      Returns:
    • getApplyUpdateCommand

      String getApplyUpdateCommand(Path installationPath, Path candidatePath, boolean noConflictsOnly)
      generates command used to apply an update candidate in candidatePath into installationPath
      Parameters:
      installationPath -
      candidatePath -
      noConflictsOnly - - whether to append the no-conflicts-only flag
      Returns:
    • getApplyRevertCommand

      String getApplyRevertCommand(Path installationPath, Path candidatePath, boolean noConflictsOnly)
      generates command used to apply a revert candidate in candidatePath into installationPath
      Parameters:
      installationPath -
      candidatePath -
      noConflictsOnly - - whether to append the no-conflicts-only flag
      Returns: