feat: add mode, user and group info parameters (#1799)

* feat: add mode, user and group info parameters

* fix: correct function names

* fix: change mode to perm
This commit is contained in:
Oscar Wallberg authored and GitHub committed 2024-09-14 00:25:26 +10:00
1 parent e9cb31f2eb
commit 1c56620f57
5 files changed
+55 -11

No files matched your search

+4 -4
View File
@@ -260,9 +260,9 @@ func (e *setExpr) eval(app *app, args []string) {
toks := strings.Split(e.val, ":")
for _, s := range toks {
switch s {
case "size", "time", "atime", "ctime":
case "size", "time", "atime", "ctime", "perm", "user", "group":
default:
app.ui.echoerr("info: should consist of 'size', 'time', 'atime' or 'ctime' separated with colon")
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'ctime', 'perm', 'user' or 'group' separated with colon")
return
}
}
@@ -482,9 +482,9 @@ func (e *setLocalExpr) eval(app *app, args []string) {
toks := strings.Split(e.val, ":")
for _, s := range toks {
switch s {
case "size", "time", "atime", "ctime":
case "size", "time", "atime", "ctime", "perm", "user", "group":
default:
app.ui.echoerr("info: should consist of 'size', 'time', 'atime' or 'ctime' separated with colon")
app.ui.echoerr("info: should consist of 'size', 'time', 'atime', 'ctime', 'perm', 'user' or 'group' separated with colon")
return
}
}