Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
lua: document pkg.exec and pkg.readdir
Baptiste Daroussin committed 4 years ago
commit b9482728c7e559498f12eb0a23dfea5a952d987f
parent 91a326bdf0fb41a3e6a89faec31e9c76b8c3ad5e
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 ,