MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / checkCmdAvailability

Function checkCmdAvailability

agent/utils/files/archiver.go:79–84  ·  view source on GitHub ↗
(cmdStr string)

Source from the content-addressed store, hash-verified

77}
78
79func checkCmdAvailability(cmdStr string) error {
80 if cmd.Which(cmdStr) {
81 return nil
82 }
83 return buserr.WithName("ErrCmdNotFound", cmdStr)
84}

Callers 8

ExtractMethod · 0.85
CompressMethod · 0.85
ExtractMethod · 0.85
CompressMethod · 0.85
CompressMethod · 0.85
NewShellArchiverFunction · 0.85
NewExtractShellArchiverFunction · 0.85
ExtractMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected