增加返回命令参数
This commit is contained in:
parent
bfaa63d5c1
commit
22318b83cc
2
ls.go
2
ls.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user