changes the actual file format of docs to markup since that's basically what we have been
using in the first place.
the docgen command has been modified to write markdown headings with the function name and
yaml metadata for easy consumption by hugo for the website.
all other docs have been moved to markdown as well this is the main reason this is a "breaking" change
users will have to reinstall hilbish (task uninstall and task install) to remove the old plaintext docs
* refactor: use custom event emitter
* fix: sigint hook emit on windows
* fix: restore correct hilbish conf file
* fix: call recoverer for go listeners
* refactor(golibs/bait): use 1 map for listeners
* feat: add once listeners, ability to remove listeners and remove listener on error
* perf: reslice listener slice instead of trying to do ordered move with append
* feat(bait): add release function to remove event listener
* perf: remove listener directly from once emit instead of using off function
* refactor: use bait event emitter on commander
* docs(golibs/bait): add doc strings for functions
* docs: set changelog
* docs(golibs/bait): add docs for lua release function
any interface which has lua side objects that are from go side for its api (namely jobs) they will use userdata instead of always creating a table to represent the object. this might or might not bring lower ram usage since there is now only 1 single reference to an object instead of always creating a table to expose on lua
breaking change since methods need to be called with a colon instead of dot
* feat: add hilbish.job.add function
this is mainly to accomodate for the employer
handler (#152)
* feat!: add start function to jobs
the commit itself adds a few things but the
main purpose is to facilitate a lua side start
function that can restart the job
there is a breaking change in the hilbish.job.add
function; it is now required to provide an extra
table for arguments, since the first cmd
table isnt really what's actually ran
* fix: reuse standard files for jobs
* fix: deadlock in lua job add function and not taking proper amount of args
* fix: assign binary path to job
* feat: emit job.add hook when job is added
* chore: update modules
* fix: use setpgid on cmd procattr for background jobs
* fix: use right procattr on correct os
* fix: set bg proc attr in build tagged file
* feat: add disown function
* fix: stop jobs on exit
* feat: add disown command
* feat: add jobs.last function to get last job
* feat: make disown command get last job if id isnt suppied as arg
* chore: remove unused code
* feat: add job output
* chore: fix comments
* fix!: make exec path in job add explicit in lua side
* docs: add docs and changelogs relating to jobs
major rewrite which changes the library hilbish uses for it's lua vm
this one implements lua 5.4, and since that's a major version bump,
it's a breaking change. introduced here also is a fix for `hilbish.login`
not being the right value
* refactor: start work on lua 5.4
lots of commented out code
ive found a go lua library which implements lua 5.4
and found an opportunity to start working on it.
this commit basically removes everything and just leaves
enough for the shell to be "usable" and able to start.
there are no builtins or libraries (besides the `hilbish` global)
* fix: call cont next in prompt function
this continues execution of lua, very obvious
fixes an issue with code stopping at the prompt function
* fix: handle errors in user config
* fix: handle panic in lua input if it is incorrect
* feat: implement bait
* refactor: use util funcs to run lua where possible
* refactor: move arg handle function to util
* feat: implement commander
* feat: implement fs
* feat: add hilbish module functions used by prelude
* chore: use custom fork of golua
* fix: make sure args to setenv are strings in prelude
* feat: implement completions
* chore: remove comment
* feat: implement terminal
* feat: implement hilbish.interval
* chore: update lunacolors
* chore: update golua
* feat: implement aliases
* feat: add input mode
* feat: implement runner mode
* style: use comma separated cases instead of fallthrough
* feat: implement syntax highlight and hints
* chore: add comments to document util functions
* chore: fix dofile comment doc
* refactor: make loader functions for go modules unexported
* feat: implement job management
* feat: add hilbish properties
* feat: implement all hilbish module functions
* feat: implement history interface
* feat: add completion interface
* feat: add module description docs
* feat: implement os interface
* refactor: use hlalias for add function in hilbish.alias interface
* feat: make it so hilbish.run can return command output
* fix: set hilbish.exitCode to last command exit code
* fix(ansikit): flush on io.write
* fix: deregister commander if return isnt number
* feat: run script when provided path
* fix: read file manually in DoFile to avoid shebang
* chore: add comment for reason of unreading byte
* fix: remove prelude error printing
* fix: add names at chunk load for context in errors
* fix: add newline at the beginning of file buffer when there is shebang
this makes the line count in error messages line up properly
* fix: remove extra newline after error