ExternalCommandImpl

io.shiftleft.semanticcpg.utils.ExternalCommandImpl

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Type members

Classlikes

case class ExternalCommandResult(exitCode: Int, stdOut: Seq[String], stdErr: Seq[String])

Attributes

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

Value members

Concrete methods

def executableDir(packagePath: Path): Path

Finds the absolute path to the executable directory (e.g. /path/to/javasrc2cpg/bin). Based on the package path of a loaded classfile based on some (potentially flakey?) filename heuristics. Context: we want to be able to invoke the x2cpg frontends from any directory, not just their install directory, and then invoke other executables, like astgen, php-parser et al.

Finds the absolute path to the executable directory (e.g. /path/to/javasrc2cpg/bin). Based on the package path of a loaded classfile based on some (potentially flakey?) filename heuristics. Context: we want to be able to invoke the x2cpg frontends from any directory, not just their install directory, and then invoke other executables, like astgen, php-parser et al.

Attributes

def run(command: Seq[String], workingDir: Option[String], mergeStdErrInStdOut: Boolean, extraEnv: Map[String, String], isShellCommand: Boolean, timeout: Duration): ExternalCommandResult