TorchedSammy
1fd99a78cc
docs: add docs and changelogs relating to jobs
2022-05-21 20:33:05 -04:00
TorchedSammy
e50ee0b511
fix!: make exec path in job add explicit in lua side
2022-05-21 20:11:15 -04:00
TorchedSammy
f43ff7d03c
chore: fix comments
2022-05-21 19:58:41 -04:00
TorchedSammy
3bcff3e350
feat: add job output
2022-05-21 19:55:05 -04:00
TorchedSammy
8fdde4aa58
chore: remove unused code
2022-05-21 12:47:21 -04:00
TorchedSammy
dde56cbb4f
feat: make disown command get last job if id isnt suppied as arg
2022-05-21 11:54:07 -04:00
TorchedSammy
bbff7098c2
feat: add jobs.last function to get last job
2022-05-21 11:53:44 -04:00
TorchedSammy
b3a5c0e67c
feat: add disown command
2022-05-21 11:38:26 -04:00
TorchedSammy
fc40bad092
fix: stop jobs on exit
2022-05-21 11:38:02 -04:00
TorchedSammy
db6817e4ca
feat: add disown function
2022-05-21 11:37:19 -04:00
TorchedSammy
4bc94ce916
fix: set bg proc attr in build tagged file
2022-05-21 06:03:53 -04:00
TorchedSammy
1522749397
fix: use right procattr on correct os
2022-05-21 05:58:01 -04:00
TorchedSammy
4a5e4957d7
fix: use setpgid on cmd procattr for background jobs
2022-05-21 05:56:42 -04:00
TorchedSammy
055132aa10
chore: update modules
2022-05-21 05:54:55 -04:00
TorchedSammy
4805244417
feat: emit job.add hook when job is added
2022-05-17 18:08:27 -04:00
TorchedSammy
2fb55526dc
fix: assign binary path to job
2022-05-17 18:05:16 -04:00
TorchedSammy
9f6a07c90a
fix: deadlock in lua job add function and not taking proper amount of args
2022-05-17 18:00:28 -04:00
TorchedSammy
b5c78a39a8
fix: reuse standard files for jobs
2022-05-17 17:43:42 -04:00
TorchedSammy
c78d7f5627
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
2022-05-13 19:51:31 -04:00
TorchedSammy
827c25fb57
feat: add hilbish.job.add function
...
this is mainly to accomodate for the employer
handler (#152 )
2022-05-13 17:08:15 -04:00
TorchedSammy
3374dfd28f
fix: always start job in exec handler
...
makes sure that if any errors occur the job
will still throw the start hook
2022-05-13 16:59:16 -04:00
TorchedSammy
9a87d76969
fix: finish job on lua job stop function
...
makesdoc sure that a job is finalized by throwing
the job.done hook and setting its running status
to false
2022-05-12 22:29:07 -04:00
TorchedSammy
200fe1054f
fix: pass user input to runner function instead of expanded alias
2022-05-11 21:13:29 -04:00
TorchedSammy
52a58b14c3
docs: update nature doc to have new correct info
2022-05-08 16:03:44 -04:00
TorchedSammy
15035c02cb
fix(doc): check if modmt exists before trying to get module prop docs
2022-05-08 16:02:24 -04:00
Renzix
dd678a4a75
fix: Not loading nature module on some systems ( #150 )
2022-05-08 16:01:06 -04:00
TorchedSammy
0a01ed862c
feat: print error if nature is missing
2022-05-06 19:21:32 -04:00
TorchedSammy
200babf831
chore: merge
2022-05-06 19:06:57 -04:00
TorchedSammy
d6bc8b51de
ci: fix missing files on either oses
2022-05-06 19:06:06 -04:00
sammyette
86700c0a7b
ci: add codeql code scanning
2022-05-06 12:20:41 -04:00
TorchedSammy
30b07bc98b
fix: check if path has tilde prefix when trying to expand home
2022-05-01 07:20:40 -04:00
TorchedSammy
db437905e0
fix: implicitly expand tilde on args to all fs functions
2022-05-01 00:49:59 -04:00
TorchedSammy
c890b86e08
feat: add hilbish.opts and autocd opt
...
this adds `hilbish.opts`, a table to set
simple options akin to shopt or setopt on
other shells. this commit specifically also
includes the autocd opt, which functions the
way you expect it to
to set opts, simply do `hilbish.opts.name = val`,
where `name` is the opt you want to set and `val`
being the opt setting.
ie: `hilbish.opts.autocd = true` to turn on autocd
2022-04-30 21:22:37 -04:00
TorchedSammy
a8406657f9
fix: remove nature hook handles
...
since it was only for command exec errors,
and theyre handled runner side now, we dont
have to handle it via hooks anymore
2022-04-30 21:05:21 -04:00
TorchedSammy
4178b78341
fix: return other errors from sh runner
...
makes it so that the sh runner function will return
command not found and not executable errors,
which makes them able to be handled via lua properly
2022-04-30 21:02:36 -04:00
TorchedSammy
c4eb3ad368
chore: change lua init errors to make more sense
2022-04-30 20:31:37 -04:00
TorchedSammy
0642ddda36
fix: push home dir to recent dirs with correct function
2022-04-30 20:28:47 -04:00
TorchedSammy
b210378380
ci: remove .exe from windows artifact names
2022-04-30 12:08:54 -04:00
TorchedSammy
03cb9c06f3
ci: fix release builds; make them include lua libs and nature lib
2022-04-30 12:08:39 -04:00
TorchedSammy
c929c7602f
ci: checkout submodules
2022-04-30 12:00:41 -04:00
TorchedSammy
e678ef66d8
docS: update changelogs for master
...
800th commit!
2022-04-30 12:00:01 -04:00
TorchedSammy
d053b58204
ci: indent list of files
2022-04-30 10:50:06 -04:00
TorchedSammy
eb3123405a
ci: fix list of files for artifact build
2022-04-30 10:48:32 -04:00
TorchedSammy
f12f88ed00
ci: include all required files in build artifacts
2022-04-30 10:45:55 -04:00
TorchedSammy
3bad452f95
fix: load completions by default
2022-04-24 09:00:06 -04:00
TorchedSammy
2790982ad1
fix: no command completions if query/line is an alias
...
basically, i have a `c` alias which is `git commit`,
this would resolve to `git commit` literally to try
and complete `commit`, which wouldnt match.
this fixes that, and instead itll suggest commands
that start with `c`. if there is a space after and
completion is requested, itll use the alias properly
2022-04-24 00:06:19 -04:00
TorchedSammy
4e5f8b5c80
docs: add docs for nature module
2022-04-24 00:00:18 -04:00
TorchedSammy
4a4c4d8c74
refactor: rewrite completion handler in lua
2022-04-23 23:59:03 -04:00
TorchedSammy
bcf02a6b0e
fix: make custom hist dir match default by adding hilbish to the path
2022-04-23 23:55:04 -04:00
TorchedSammy
984b8a4308
feat: add hilbish.aliases.resolve to resolve an alias
2022-04-23 12:28:28 -04:00