ExternalCommandResult

io.shiftleft.semanticcpg.utils.ExternalCommandResult
case class ExternalCommandResult(exitCode: Int, stdOut: Seq[String], stdErr: Seq[String], input: String, additionalContext: Option[String])

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def logIfFailed(): this.type
def stdOutAndError: Seq[String]

Lines of standard output (if successful), or else a combination of stdout and stderr, plus some context.

Lines of standard output (if successful), or else a combination of stdout and stderr, plus some context.

Attributes

def successOption: Option[Seq[String]]

Lines of standard output, if successful.

Lines of standard output, if successful.

Attributes

def successful: Boolean
def toTry: Try[Seq[String]]

Lines of stdout, if successful. Otherwise an exception with message=stderr.

Lines of stdout, if successful. Otherwise an exception with message=stderr.

Attributes

def verifySuccess(): this.type

convenience method: verify that the result is a success, throws an exception otherwise

convenience method: verify that the result is a success, throws an exception otherwise

Attributes

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product