Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
79
func
checkCmdAvailability(cmdStr string) error {
80
if
cmd.Which(cmdStr) {
81
return
nil
82
}
83
return
buserr.WithName(
"ErrCmdNotFound"
, cmdStr)
84
}
Callers
8
Extract
Method · 0.85
Compress
Method · 0.85
Extract
Method · 0.85
Compress
Method · 0.85
Compress
Method · 0.85
NewShellArchiver
Function · 0.85
NewExtractShellArchiver
Function · 0.85
Extract
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected