ExternalCommand

io.shiftleft.semanticcpg.utils.ExternalCommand

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Inherited classlikes

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

Attributes

Inherited from:
ExternalCommandImpl
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Value members

Inherited 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

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

Attributes

Inherited from:
ExternalCommandImpl