mirror of https://github.com/Hilbis/Hilbish
fix: check if no command passed to exec (#310)
* fix: check if no command passed to exec * docs: add exec fixes * chore: remove extra spacepull/313/head
parent
0e4b95d9b9
commit
b24fc4a422
|
@ -30,6 +30,7 @@ hilbish.run('wc -l', {
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fix ansi attributes causing issues with text when cut off in greenhouse
|
- Fix ansi attributes causing issues with text when cut off in greenhouse
|
||||||
|
- `exec` command should return if no arg presented
|
||||||
|
|
||||||
## [2.2.3] - 2024-04-27
|
## [2.2.3] - 2024-04-27
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
local commander = require 'commander'
|
local commander = require 'commander'
|
||||||
|
|
||||||
commander.register('exec', function(args)
|
commander.register('exec', function(args)
|
||||||
|
if #args == 0 then
|
||||||
|
return
|
||||||
|
end
|
||||||
hilbish.exec(args[1])
|
hilbish.exec(args[1])
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue