parent
9707b23258
commit
56de4c81b2
3 changed files with 19 additions and 10 deletions
|
|
@ -73,12 +73,12 @@ proc switch*(key: string, val="") =
|
|||
proc warning*(name: string; val: bool) =
|
||||
## Disables or enables a specific warning.
|
||||
let v = if val: "on" else: "off"
|
||||
warningImpl(name & "]:" & v, "warning[" & name & "]:" & v)
|
||||
warningImpl(name & ":" & v, "warning:" & name & ":" & v)
|
||||
|
||||
proc hint*(name: string; val: bool) =
|
||||
## Disables or enables a specific hint.
|
||||
let v = if val: "on" else: "off"
|
||||
hintImpl(name & "]:" & v, "hint[" & name & "]:" & v)
|
||||
hintImpl(name & ":" & v, "hint:" & name & ":" & v)
|
||||
|
||||
proc patchFile*(package, filename, replacement: string) =
|
||||
## Overrides the location of a given file belonging to the
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue