vendor illwill

This commit is contained in:
Daylin Morgan 2024-09-30 11:12:26 -05:00
parent a6641c5e37
commit 7625798c58
Signed by: daylin
GPG key ID: 950D13E9719334AD
4 changed files with 1661 additions and 9 deletions

View file

@ -4,7 +4,6 @@ task test, "run tests":
selfExec "r tests/tbbansi.nim" selfExec "r tests/tbbansi.nim"
task develop, "install cligen for development": task develop, "install cligen for development":
exec "nimble install -l 'illwill@0.4.1'"
exec "nimble install -l 'cligen@1.7.5'" exec "nimble install -l 'cligen@1.7.5'"
proc docFixup(deployDir:string, pkgName: string) = proc docFixup(deployDir:string, pkgName: string) =
@ -31,4 +30,3 @@ task docs, "Deploy doc html + search index to public/ directory":
when withDir(thisDir(), system.dirExists("nimbledeps")): when withDir(thisDir(), system.dirExists("nimbledeps")):
--path:"./nimbledeps/pkgs2/cligen-1.7.5-f3ffe7329c8db755677d3ca377d02ff176cec8b1" --path:"./nimbledeps/pkgs2/cligen-1.7.5-f3ffe7329c8db755677d3ca377d02ff176cec8b1"
--path:"./nimbledeps/pkgs2/illwill-0.4.1-9c58351502f89a16caf031cbd1992ad3fdfd3c67"

View file

@ -11,12 +11,7 @@
import std/[enumerate, os, strutils, sequtils, sets, terminal] import std/[enumerate, os, strutils, sequtils, sets, terminal]
import ./bbansi import ./bbansi
import ./vendor/illwill
template tryImport*(x, body) =
when not (compiles do: import x): body else: import x
tryImport illwill:
{.fatal: "hwylterm/choose requires illwill >= 0.4.1".}
proc exitProc() {.noconv.} = proc exitProc() {.noconv.} =
illwillDeInit() illwillDeInit()

1659
src/hwylterm/vendor/illwill.nim vendored Normal file

File diff suppressed because it is too large Load diff

View file

@ -3,9 +3,9 @@
- [x] add cligen adapters to add colors with bbansi - [x] add cligen adapters to add colors with bbansi
- [ ] add integration test check cligen - [ ] add integration test check cligen
- [ ] add generic help generator to accompany parseopt - [ ] add generic help generator to accompany parseopt
## improvements ## improvements
- [ ] consider reducing illwill surface to only relevant IO (input) features
- [ ] revamp spinner api - [ ] revamp spinner api
- [x] add Bbstring ~~indexing operations~~ strutils, that are span aware - [x] add Bbstring ~~indexing operations~~ strutils, that are span aware