$ op for the specialized Confutils types

This commit is contained in:
Zahary Karadjov 2020-06-02 17:38:07 +03:00
parent 6e5d570490
commit 6f109184e3
No known key found for this signature in database
GPG Key ID: C8936F8A3073D609
1 changed files with 5 additions and 0 deletions

View File

@ -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.}