1 Star 0 Fork 1

yss930819/gf-ex

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
other.go 728 Bytes
一键复制 编辑 原始数据 按行查看 历史
//go:build !windows
// +build !windows
package ysos
import "github.com/gogf/gf/v2/os/gproc"
import "context"
// OpenDir 未实现
func OpenDir(path string) {
}
// CheckProcessByName 未实现
func CheckProcessByName(name string) bool {
return true
}
// KillProcessByName 未实现
func KillProcessByName(name string) bool {
return true
}
// GetGitBashPath 未实现
func GetGitBashPath(ctx context.Context) string {
return ""
}
func FindShExePath(ctx context.Context) string {
return ""
}
func RunShellFile(ctx context.Context, filePath string) error {
return nil
}
func HasCmd(ctx context.Context, cmd string) bool {
_, err := gproc.ShellExec(ctx, "which "+cmd)
if err != nil {
return false
}
return true
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/kmyss/gf-ex.git
git@gitee.com:kmyss/gf-ex.git
kmyss
gf-ex
gf-ex
v1.0.5

搜索帮助