Commit Graph

621 Commits (3805f133696e2c2c8a5090a1d44638791f1efe0a)

Author SHA1 Message Date
sammyette 539a39f83a
feat: add fs.readdir function
it takes 1 argument: the directory to read.
2021-10-16 13:47:39 -04:00
sammyette 452335d84a
fix: change luaErr to return string instead of code 2021-10-16 13:47:09 -04:00
sammyette 3cafbe8c4f
docs: document `hilbish` module functions, xdg vars, and add descriptions for modules 2021-10-16 12:41:10 -04:00
sammyette a2f54b627b
feat: output docs to a docs folder, allow multiline docs 2021-10-16 12:38:46 -04:00
sammyette 71b72bbdd4
chore: move comments below package declaration 2021-10-16 11:31:01 -04:00
sammyette 1689d80721
feat: add docgen program, document almost all hilbish functions 2021-10-16 10:21:05 -04:00
sammyette ecbcf9a968
feat: add docgen program 2021-10-15 23:58:56 -04:00
sammyette f9133584d4
chore: add dataDir var 2021-10-14 19:46:25 -04:00
sammyette e4833bdba9
feat: add command.preexec hook
it provides 2 arguments: what the user typed, and the command hilbish
will execute.
2021-10-14 08:51:29 -04:00
sammyette 63061e3a52
fix(bait): allow more than 1 argment for catch callback 2021-10-13 23:41:20 -04:00
sammyette 4596159b8f
feat: add command.precmd hook 2021-10-13 22:53:09 -04:00
sammyette 9eabe5323d
fix: throw command.exit with 0 code if input is nothing 2021-10-13 22:51:38 -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 7ac0e27739
fix: lib paths for ~/.config 2021-10-13 11:27:37 -04:00
sammyette d2c720c863
fix: make lib paths in ~/.config/hilbish on linux 2021-10-13 10:50:38 -04:00
sammyette 0977110e79
feat: add default history dir to xdg dir, or fallback to home 2021-10-13 10:42:35 -04:00
sammyette b387b18923
fix: properly default config dir to xdg dir 2021-10-13 10:41:55 -04:00
sammyette d58617b173
docs: slight refactor of the readme 2021-10-12 16:01:17 -04:00
Gabriel Rato c29b6c6fd4
fix: break for loop after finding the aliased command (#73) 2021-10-11 21:45:52 -04:00
sammyette 4808662893
chore: merge from dev 2021-10-09 11:39:02 -04:00
Angelo-F 22f33324e0
docs: add changelog.md (#72)
* docs: add changelog.md

* fix: Fix formatting in a section

* fix: changelog.md - remove stray line (l143) and bullet point (l34)
2021-10-09 11:15:25 -04:00
sammyette cff7827ace
fix: trim extra whitespace from cd args
this fixed an issue with `cd -` not working
2021-10-08 09:49:57 -04:00
L3af 400dd2944d
feat: respect xdg directories (#71)
* feat: respect xdg directories

* fix: move xdg vars to table

Co-authored-by: L3af <ohhaon@icloud.com>
2021-10-07 20:58:07 -04:00
sammyette 144c082d3e
fix: change order of require paths
prevents using old outdated version of lunacolors if it isnt deleted
2021-09-30 00:15:35 -04:00
sammyette 2c10be0102
fix: add new require path 2021-09-30 00:01:03 -04:00
sammyette 37bc018a13
chore: update lunacolors 2021-09-29 23:56:16 -04:00
sammyette 630c0b0356
fix: dont trim spaces on cd dir args 2021-09-29 22:32:37 -04:00
sammyette afcc6fe63a
fix: handle error case of target in fs.cd not being a dir (closes #66) 2021-09-28 22:55:08 -04:00
sammyette a6a3962044
fix: correct url to github repo and add newline after error 2021-09-28 22:54:04 -04:00
sammyette bc4e0f835f
fix: revert "fix: reuse sh runner"
This reverts commit 822b2876e9.
this broke a few things with the shell so probably shouldnt do this yet
2021-09-25 22:46:06 -04:00
sammyette c95b0b55be
fix: runtime errors on linux
this fixes out of bounds error since we tried to split the username
for '\' which is only valid on windows, so i added it for windows only
2021-09-25 21:39:06 -04:00
sammyette 7c815022a9
chore: merge from dev 2021-09-18 22:49:33 -04:00
sammyette 2ef2998279
fix: make timeout() blocking
may or may not be temporary
2021-09-18 22:48:28 -04:00
sammyette 196526cc6a fix: rename unix vars to linux 2021-07-08 17:55:19 -07:00
sammyette 5d78a0c574 feat: add compile vars for windows 2021-07-08 17:49:51 -07:00
sammyette a3cc8160d3 fix: trim off hostname in %u verb for windows 2021-07-08 03:44:57 -07:00
sammyette 4caeb7ec91 feat: replace ~ in preloadPath and sampleConfPath with homedir 2021-07-08 03:44:11 -07:00
sammyette 822b2876e9
fix: reuse sh runner
this makes it so env variables persist, and some other stuff
builtin cd actually works now :]
2021-06-20 21:48:07 -04:00
sammyette 2b5e65e47a
chore: bump version 2021-06-15 19:33:51 -04:00
sammyette 9dda3cb372
feat: add ~/.config/hilbish to require path 2021-06-15 19:17:56 -04:00
sammyette e5a0f627b8
fix: use hilbish.home for require paths 2021-06-15 19:16:22 -04:00
sammyette 805eefcd17
fix: use hilbish.home instead of home env var 2021-06-14 18:12:12 -04:00
sammyette eab3f27ebf
fix: throw cd hook only after changing directory 2021-06-14 18:11:07 -04:00
sammyette 30ffe9cab0
fix: handle error before getting commander exit code
this fixes a register underflow issue if a commander causes an error
2021-06-14 18:02:44 -04:00
sammyette 36ea20b550
fix: aliases in sh interp exec handler 2021-06-12 11:52:56 -04:00
sammyette 81f7b77b8b
docs: fix description of -l flag 2021-06-12 10:49:22 -04:00
sammyette e6c4c32bd7
feat: handle -h option 2021-06-12 10:48:57 -04:00
sammyette b974ada64e
fix: comment out unused module 2021-06-12 10:43:13 -04:00
sammyette 7e5f9e9541
fix: remove debug logging 2021-06-12 10:41:51 -04:00
sammyette a413b28f2a
fix: define deregister function in commander module 2021-06-12 10:32:48 -04:00