Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix compilation error #3

Merged
merged 2 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions kapsis.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ requires "nim >= 2.0.0"
requires "illwill"
requires "checksums"
requires "https://github.com/openpeeps/voodoo"
requires "pixie"
# pixie not used
# requires "pixie"
requires "valido"
requires "spinny#head"
requires "nancy"
Expand All @@ -23,4 +24,4 @@ task dev, "dev mode":
exec "nim c --mm:arc --threads:on -o:./bin/kapsis src/kapsis.nim"

task screen, "build a cli screen for test":
exec "nim c src/kapsis/interactive/screen.nim"
exec "nim c src/kapsis/interactive/screen.nim"
19 changes: 9 additions & 10 deletions src/kapsis/app.nim
Original file line number Diff line number Diff line change
Expand Up @@ -336,16 +336,15 @@ template parseArgument(node: NimNode, isOpt: bool) {.dirty.} =
cmdArgType = "cmdArgument"
else:
error("Invalid argument " & $(node[1].kind))
add result,
newCall(
ident "addArg",
cmdx,
newLit $(argName),
ident cmdArgType,
ident argType,
ident "katArg",
newLit isOpt
)
discard result.add(newCall(
ident "addArg",
cmdx,
newLit $(argName),
ident cmdArgType,
ident argType,
ident "katArg",
newLit isOpt
))
except:
error("Unknown type " & node[0].strVal & ". Use one of: " & KapsisValueType.toSeq().join(", "), x[0])

Expand Down
Loading