Hilbish v2.3.0
Added
commander.registry
function to get all registered commanders.fs.pipe
function to get a pair of connected files (a pipe).- Added an alternative 2nd parameter to
hilbish.run
, which isstreams
.
streams
is a table of input and output streams to run the command with.
It uses these 3 keys:input
as standard input for the commandout
as standard outputerr
as standard error
Here is a minimal example of the new usage which allows users to now pipe commands
directly via Lua functions:
local fs = require 'fs'
local pr, pw = fs.pipe()
hilbish.run('ls -l', {
stdout = pw,
stderr = pw,
})
pw:close()
hilbish.run('wc -l', {
stdin = pr
})
Changed
- The
-S
flag will be set to Hilbish's absolute path - Hilbish now builds on any Unix (if any dependencies also work, which should.)
Fixed
- Fix ansi attributes causing issues with text when cut off in greenhouse
- Fix greenhouse appearing on terminal resize
- Fix crashes when history goes out of bounds when using history navigation
exec
command should return if no arg presented- Commanders can now be cancelled by Ctrl-C and wont hang the shell anymore.
See issue 198. - Shell interpreter can now preserve its environment and set PWD properly.