tersec
7217854b60
rm deprecated ValidIpAddress support ( #96 )
2024-01-25 12:05:18 +01:00
tersec
7568f1b7c3
support IpAddress in contexts ValidIpAddress is supported ( #95 )
2023-10-27 09:49:03 +00:00
Etan Kissling
d784b823be
add `{.raises.}` annotation to `writeValue` ( #88 )
...
Tag `writeValue` override with `{.raises: [IOError].}`.
2023-08-19 18:31:42 +02:00
Etan Kissling
dbe8d61f7f
require `secondarySources` to be `gcsafe` ( #86 )
...
Avoid Nim 2.0 warning in callers of `confutils.load`.
```
Warning: 'loadImpl' is not GC-safe as it performs an indirect call via 'secondarySources' [GcUnsafe2]
```
2023-07-31 14:56:44 +02:00
tersec
10e53c3a67
use --mm: instead of --gc: and remove stddefects import ( #85 )
...
* use --mm: instead of --gc: and remove stddefects import
* remove incorrect trailing ":" from line
2023-06-08 13:12:32 +00:00
Adam Uhlíř
2028b41602
feat: integrate env. variable support natively ( #70 )
2023-04-19 12:54:48 +03:00
jangko
38dfeaaabd
reduce compiler warnings
2023-02-15 15:26:53 +07:00
jangko
a1f3b22bbe
fix ci for nim 1.6 and devel
...
- rm -f nimble.lock to allow nim 1.2,1.4,1.6, and devel run test with nimble
- upgrade ubuntu runner to 20.04
- upgrade github actions to v3
2023-02-12 13:05:41 +07:00
jangko
a26bfab7e5
fix config file test due to toml-serialization changes
2022-09-23 09:45:15 +07:00
Miran
b098d9ea85
move `-d:nimRawSetjmp` to config.nims ( #54 )
...
* move `-d:nimRawSetjmp` to config.nims
Refs https://github.com/status-im/nimbus-build-system/issues/44
* use .cfg not .nims
2022-09-03 08:35:01 +02:00
tersec
fc03a0c4e1
rm TaintedString for string; some proc -> func ( #53 )
...
* rm TaintedString for string; some proc -> func
* procs which interact with macros in certain ways can't be funcs in Nim 1.2
2022-06-03 18:24:59 +00:00
jangko
d06f6187dc
fix #49 : field type with qualified ident
2022-05-10 12:18:06 +07:00
jangko
8f8f715f76
fix nnkAccQuoted entry processing in config-file
...
fixes #47
2022-04-16 18:28:38 +07:00
tersec
a4f51237fc
add parseCmdArg tests; fix 64-bit int parsing on 32-bit platforms ( #44 )
2022-03-23 14:30:29 +02:00
Ștefan Talpalaru
9826fddd1c
fix corner case with custom pragma ( #42 )
...
The AST changes when you call the same custom pragma more than once.
2022-03-11 14:28:28 +01:00
Zahary Karadjov
0a88d30e00
Clean up the obsolete config loading code; Fix the tests
2022-03-05 15:07:57 +02:00
Zahary Karadjov
0fc26c5b25
Bugfixes for the config file support
...
- The config files processing was not taking into account the `name`
pragma of the configuration object fields.
- The required fields were not searched within config files before
reporting an error that they are missing.
- Fields with the same names were not supported in different case branches
- The loaded config file path can now depend on the configuration
supplied through the command-line.
2022-03-04 23:24:58 +02:00
jangko
6a56d01381
feature: add `ignore` property in addition to `hidden`
...
you can still set the value of a hidden option,
it just dont show up in the help text.
but using `ignore`, the is no chance you can set the value from cli.
2021-12-01 13:59:38 +02:00
jangko
0cd09d75c8
add compile time check to detect duplicate abbr and duplicate name
2021-09-08 15:53:44 +03:00
Zahary Karadjov
4c19475a01
Bugfix: allow multiple positional arguments in sub-commands
2021-05-17 23:08:18 +03:00
Zahary Karadjov
bb6cbf6e0d
Display the default values of parameter in the help messages
2021-05-16 21:42:12 +03:00
jangko
29c4a1870f
implement config file tests
2020-11-02 16:17:51 +02:00
jangko
f3a048f9ea
config file integration into confutils
2020-11-02 16:17:51 +02:00
jangko
085d52d3ad
fixes winreg Option[T] decoder
2020-10-29 13:52:31 +02:00
jangko
1e1ba43af2
separate public types and private utils
2020-10-29 13:52:31 +02:00
jangko
4304251b09
winreg encoder-decoder implementation
2020-10-29 13:52:31 +02:00
jangko
0df747294e
initial winreg implementation
2020-10-29 13:52:31 +02:00
jangko
b961fbe7b4
fixes envvar Option[T] decoder
2020-10-29 13:52:16 +02:00
jangko
a263d76bc0
envvar encoder decoder implementation
2020-10-29 13:52:16 +02:00
jangko
4981d719a1
setup ci
2020-10-20 15:35:47 +07:00
Zahary Karadjov
aac25d1610
Fix #18 ; Fix parsing of sub-commands with descriptions
2020-06-16 18:22:41 +03:00
Zahary Karadjov
d5bcca04da
Fix a test using obsolete pragmas
2020-03-24 17:31:05 +02:00
Zahary Karadjov
6f5f030539
Fix #6
2019-11-08 16:28:04 +00:00
Zahary Karadjov
31c9f9ae38
Fix #8
2019-11-08 15:55:25 +00:00
Zahary Karadjov
aa5ccdd57f
Restore compilation with nimscript; More colorful help output
2019-10-23 03:30:40 +03:00
Zahary Karadjov
937c09e204
Support for arbitrary sub-command nesting
2019-09-30 02:40:16 +03:00
Zahary Karadjov
99869e4738
Fix the compilation issues with Nim 0.19.6
2019-07-08 18:09:08 +03:00