fix: check if no command passed to exec (#310)

* fix: check if no command passed to exec

* docs: add exec fixes

* chore: remove extra space
pull/313/head
youkwhd 2024-07-10 21:04:15 +07:00 committed by GitHub
parent 0e4b95d9b9
commit b24fc4a422
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ hilbish.run('wc -l', {
### Fixed
- 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
### Fixed

View File

@ -1,5 +1,8 @@
local commander = require 'commander'
commander.register('exec', function(args)
if #args == 0 then
return
end
hilbish.exec(args[1])
end)