Commit Graph

640 Commits (539cf402ca157138a94673ca687b0c59b2470791)

Author SHA1 Message Date
sammyette 1e76b1501f
fix: add back dataDir field to hilbish module 2021-10-17 17:16:49 -04:00
sammyette 7d9d3e4d72
style: make highlighted parts of docs underlined blue in doc command 2021-10-17 17:16:27 -04:00
sammyette 37610ad8b0
fix: remove extra newline on exit 2021-10-17 16:47:04 -04:00
sammyette 6271a7fc18
fix: use succulent in preload, remove string split from preload 2021-10-17 16:32:04 -04:00
sammyette ad698b1a03
chore: bump version 2021-10-17 16:31:43 -04:00
sammyette 1b79abdab7
feat: add succulent lib 2021-10-17 16:31:31 -04:00
sammyette 7a3d9022e9
fix: add commonRequirePaths and linuxUserPaths to avoid repetition with custom require paths 2021-10-17 16:27:14 -04:00
sammyette 3d53e85fc9
feat: add terminal package
a simple, smaller but lower level terminal library, mainly used to set
raw mode. functions:
size, save and restore current state, set raw mode. documentation is in
docs/terminal.txt or `doc terminal` in hilbish
2021-10-17 16:10:57 -04:00
sammyette 85b347d5f3
feat(ansikit): add link function 2021-10-17 13:23:58 -04:00
sammyette 6b065dc035
fix(fs): make stat better
return a table with 4 values: name, size, mode and isDir
name -> name of path
size -> size (obviously)
mode -> permissions mode in a string as octal format
isDir -> whether path is a directory
2021-10-17 12:56:45 -04:00
sammyette df70082a81
feat: add doc command (closes #76)
the `doc` command is a way to see hilbish documentation from
in the shell. for usage, just run the command
2021-10-16 15:42:55 -04:00
sammyette 4dd6db54fe
fix: stop using setField wrapper 2021-10-16 15:40:16 -04:00
sammyette afd999a7b0
docs: add docs for functions 2021-10-16 15:38:49 -04:00
sammyette 54635072f6
fix(docgen): use better perm mask for output files and folder 2021-10-16 15:38:17 -04:00
sammyette bd3e9fdca6
docs: make linebreaks to descriptions for better alignment 2021-10-16 15:36:30 -04:00
sammyette 784e611272
chore: remove unused setField func 2021-10-16 15:33:57 -04:00
sammyette 77b3dac1b1
build: add docs folder to makefile 2021-10-16 15:33:22 -04:00
sammyette 3b97b22f10
feat: add hilbish.dataDir var 2021-10-16 13:51:09 -04:00
sammyette 20acfad2c2
fix(fs)!: handle mkdir error, change error return for cd
breaking change: cd now returns a message instead of a code to indicate the error.
any error in mkdir is now handled
2021-10-16 13:49:01 -04:00
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