Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
lua: document pkg.exec and pkg.readdir
Baptiste Daroussin committed 4 years ago
commit b9482728c7e559498f12eb0a23dfea5a952d987f
parent 91a326b
1 file changed +18 -0
modified docs/pkg-lua-script.5
@@ -124,6 +124,24 @@ with the following fields:
.Va size ,
.Va uid ,
.Va gid
+
.It Fn pkg.exec arguments
+
Will execute the command
+
.Ar arguments
+
expected in the following form:
+
.So
+
.Bro command, arg1, arg2, arg3, ...
+
.Brc
+
.Sc
+
.It Ft res Fn pkg.readdir path
+
Will return an
+
.Va ipair
+
with the list of elements contained in the directory
+
the specicial directory
+
.Va So .
+
.Sc
+
and
+
.Va Sq ..
+
are be filtered out.
.El
.Sh SEE ALSO
.Xr pkg_printf 3 ,