~mna/luashell

6b866775e9bf67f3ad710ea61d44d25841159524 — Martin Angers 4 years ago 213bc4e v0.4
create v0.4
2 files changed, 30 insertions(+), 2 deletions(-)

M README.md
A luashell-0.4-1.rockspec
M README.md => README.md +2 -2
@@ 69,7 69,7 @@ number responsible for "killed" or "stopped".
This is the same as `Cmd:exec` except that it returns the stdout output as a string
instead of the true/false boolean. The rest of the returned values are the same.
If the command failed and no output was generated on stdout, it returns nil as output,
so that it can be used in an `assert` call.
so that it can be used in an `assert` call. Trailing newlines are removed.

### Cmd:redirect(target, truncate, ...)



@@ 114,7 114,7 @@ is no "set -o pipefail" mode, this is a bash-specific feature).
This is the same as `Pipe:exec` except that it returns the stdout output as a string
instead of the true/false boolean. The rest of the returned values are the same.
If the pipe failed and no output was generated on stdout, it returns nil as output,
so that it can be used in an `assert` call.
so that it can be used in an `assert` call. Trailing newlines are removed.

### Pipe:redirect(target, truncate, ...)


A luashell-0.4-1.rockspec => luashell-0.4-1.rockspec +28 -0
@@ 0,0 1,28 @@
package = "luashell"
version = "0.4-1"
source = {
   url = "git+ssh://git@git.sr.ht/~mna/luashell"
}
description = {
   summary = "This is a small Lua module to help write what would be shell scripts in Lua.",
   detailed = [[
This is a small Lua module to help write what would be shell scripts in Lua.

It provides easy ways to run commands and check for success, get values of
environment variables with optional default value if not set, capture output
of commands, run pipelines and run POSIX tests (e.g. if file exists,
if directory exists, etc.).
]],
   homepage = "https://git.sr.ht/~mna/luashell",
   license = "BSD"
}
dependencies = {
   "lua >= 5.3, < 5.5",
   "luaposix >= 35.0-1"
}
build = {
   type = "builtin",
   modules = {
      shell = "shell.lua"
   }
}