{"modulePath":"github.com/sbom-observer/observer-cli","version":"v0.17.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package execx\n\n## Variables\n\n```go\nvar ErrNotFound = exec.ErrNotFound\n```\n\n## Functions\n\n```go\nfunc Exec(command string, args ...string) (string, error)\n```\n\n```go\nfunc ExtractCABWithTool(cabPath, outputDir string) error\n```\nExtractCABWithTool extracts a CAB file using the best available tool\n\n```go\nfunc IsCabextractAvailable() bool\n```\nIsCabextractAvailable checks if cabextract is available (Linux/macOS)\n\n```go\nfunc IsExpandAvailable() bool\n```\nIsExpandAvailable checks if Windows expand.exe is available\n\n```go\nfunc Kubectl(args ...string) (string, error)\n```\n\n```go\nfunc Syft(args ...string) (string, error)\n```\n\n```go\nfunc Trivy(args ...string) (string, error)\n```\n\n```go\nfunc TrivyAbsolutePath() (string, bool)\n```\n\n```go\nfunc TrivyUpdateDb() error\n```\n\n```go\nfunc TrivyUpdateJavaDb() error\n```\n\n## Types\n\n```go\ntype ExternalCommandError struct {\n\tMessage  string\n\tExitCode int\n\tStdErr   string\n}\n```\n\n```go\nfunc (e *ExternalCommandError) Error() string\n```\n\n```go\ntype FileEntry struct {\n\tName           string\n\tSize           int64\n\tCompressedSize int64\n\tModTime        time.Time\n}\n```\nFileEntry represents a file within a CAB archive\n\n```go\nfunc ListCABContents(cabPath string) ([]FileEntry, error)\n```\nListCABContents lists the contents of a CAB file without extracting\n\n","path":"github.com/sbom-observer/observer-cli/pkg/execx","name":"execx","synopsis":"","isRedistributable":true}
