mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-03-04 06:20:45 +00:00
Integration tests have been updated to use the new cli commands. The api for usage in the integration tests has also changed a bit. Proofs tests have been updated to use 5 nodes and 8 blocks of data. The remaining integration tests also need to be updated.
11 lines
260 B
Nim
11 lines
260 B
Nim
type
|
|
CliOption* = object
|
|
key*: string # option key, including `--`
|
|
value*: string # option value
|
|
|
|
proc `$`*(option: CliOption): string =
|
|
var res = option.key
|
|
if option.value.len > 0:
|
|
res &= "=" & option.value
|
|
return res
|