增加返回命令参数

This commit is contained in:
白茶清欢 2022-05-21 19:57:27 +08:00
parent bfaa63d5c1
commit 22318b83cc

2
ls.go
View File

@ -57,7 +57,7 @@ func (l *ls) Recursive() *ls {
// Author : go_developer@163.com<白茶清欢> // Author : go_developer@163.com<白茶清欢>
// //
// Date : 22:59 2022/5/20 // Date : 22:59 2022/5/20
func (l *ls) Run() (define.Result, []define.LsFileInfo) { func (l *ls) Run() (*define.Result, []define.LsFileInfo) {
result := Execute(l.workDir, "ls", l.paramList) result := Execute(l.workDir, "ls", l.paramList)
if nil != result.Error { if nil != result.Error {
return result, make([]define.LsFileInfo, 0) return result, make([]define.LsFileInfo, 0)