mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-03 14:03:10 +00:00
15 lines
375 B
Nim
15 lines
375 B
Nim
type HardhatConfig* = object
|
|
logFile*: bool
|
|
debugEnabled*: bool
|
|
|
|
proc debug*(self: HardhatConfig, enabled = true): HardhatConfig =
|
|
## output log in stdout
|
|
var config = self
|
|
config.debugEnabled = enabled
|
|
return config
|
|
|
|
proc withLogFile*(self: HardhatConfig, logToFile: bool = true): HardhatConfig =
|
|
var config = self
|
|
config.logFile = logToFile
|
|
return config
|