ExternalCommand

io.shiftleft.semanticcpg.utils.ExternalCommand

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

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[Path], mergeStdErrInStdOut: Boolean, extraEnv: Map[String, String], isShellCommand: Boolean, timeout: Duration, additionalContext: String): ExternalCommandResult