Skip to content

Commit

Permalink
Merge pull request #3 from Ethosa/main
Browse files Browse the repository at this point in the history
Fix compilation error
  • Loading branch information
georgelemon authored Jul 8, 2024
2 parents 32d4678 + 22d4bc0 commit 1e88431
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
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

0 comments on commit 1e88431

Please sign in to comment.