Commit Graph

30 Commits (650b45b930126d540a54e3a21ec4dc2fe69ec1a7)

Author SHA1 Message Date
TorchedSammy 604dedb36d
chore: update lunacolors 2022-12-05 14:16:43 -04:00
TorchedSammy 7de835fab4
chore: update lunacolors (adds blackBg format arg) 2022-07-26 10:41:12 -04:00
TorchedSammy f888aabc80
chore!: update lunacolors 2022-05-21 21:26:34 -04:00
sammyette 0fc5f457ad
refactor!: support lua 5.4 (#129)
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
2022-04-04 06:40:02 -04:00
TorchedSammy 34ae8ade7b
chore: tidy go modules 2022-03-29 15:28:39 -04:00
TorchedSammy e5b6a2586b
chore: update lunacolors 2022-03-13 16:37:33 -04:00
TorchedSammy 764e2372a2
feat(ansikit): add screenMain and screenAlt functions to switch terminal screen 2022-03-06 14:26:28 -04:00
TorchedSammy 4bb65572e4
fix(ansikit): define cursor consts 2022-03-06 09:42:35 -04:00
TorchedSammy dd45766bae
style: dont redeclare function param, just assign 2021-12-04 17:56:45 -04:00
TorchedSammy 144e158473
chore: remove unused function param 2021-12-04 17:56:11 -04:00
TorchedSammy dedb8cbf76
chore: make typ a local 2021-12-04 17:54:04 -04:00
sammyette 7a4cbbddff
fix(ansikit)!: return hyperlink ascii code instead of printing it 2021-10-17 19:19:43 -04:00
sammyette 72194898ba
fix: add back inspect 2021-10-17 18:51:44 -04:00
sammyette 3bd71828fa
fix: temporarily remove inspect 2021-10-17 18:51:25 -04:00
sammyette d51ae7d310
chore: update succulent 2021-10-17 18:39:14 -04:00
sammyette 51a68e24cf
chore: update succulent to fixed ver 2021-10-17 17:54:52 -04:00
sammyette 1b79abdab7
feat: add succulent lib 2021-10-17 16:31:31 -04:00
sammyette 85b347d5f3
feat(ansikit): add link function 2021-10-17 13:23:58 -04:00
sammyette 38233ccda4
feat: include inspect in hilbish libs
this provides the `inspect()` function for human readable tables
2021-10-13 19:29:10 -04:00
sammyette 37bc018a13
chore: update lunacolors 2021-09-29 23:56:16 -04:00
sammy 4d38b913f1
feat: add lunacolors library 2021-05-01 16:05:02 -04:00
sammy 32dea836d5
fix!: remove format function from ansikit
BREAKING CHANGE: this function has been moved to
Lunacolors. Hilbish users will now be using that
separate library for colors, while ansikit will be for
other terminal codes and things
2021-05-01 16:01:42 -04:00
TorchedSammy c0f34fd784 fix: return ansikit in setTitle function 2021-04-06 12:55:02 -04:00
TorchedSammy 51bcc51687 fix: syntax errors 2021-04-06 12:52:56 -04:00
TorchedSammy b266c31bb8 feat: almost completely finish ansikit 2021-04-06 09:40:50 -04:00
TorchedSammy 4c63009f56 feat!: add more functions to ansikit, change text function to format 2021-04-05 17:35:43 -04:00
TorchedSammy e6d625012d docs(libs): add comments to clarify what ansikit should be 2021-03-20 01:00:55 -04:00
TorchedSammy 50ac5e5772 docs: add todo comment 2021-03-19 21:40:00 -04:00
TorchedSammy d2ec8478ac fix: add other colors to ansikit 2021-03-19 21:34:53 -04:00
TorchedSammy 333141ab60 feat(libs): add ansi lib for easier color codes, change config to use it 2021-03-19 21:08:19 -04:00