mirror of
https://github.com/status-im/nim-codex.git
synced 2025-02-08 00:44:53 +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
|