mirror of
https://github.com/status-im/nim-confutils.git
synced 2025-01-19 00:21:15 +00:00
$ op for the specialized Confutils types
This commit is contained in:
parent
6e5d570490
commit
6f109184e3
@ -17,9 +17,14 @@ type
|
||||
Unspecified* = object
|
||||
Txt* = object
|
||||
|
||||
SomeDistinctString = InputFile|InputDir|OutPath|OutDir|OutFile
|
||||
|
||||
template `/`*(dir: InputDir|OutDir, path: string): auto =
|
||||
string(dir) / path
|
||||
|
||||
template `$`*(x: SomeDistinctString): string =
|
||||
string(x)
|
||||
|
||||
template desc*(v: string) {.pragma.}
|
||||
template name*(v: string) {.pragma.}
|
||||
template abbr*(v: string) {.pragma.}
|
||||
|
Loading…
x
Reference in New Issue
Block a user