Say Module â
This module is used to print texts in syntax highlighting way and contains prompts like error, warning, and success.
say.gencolor â
go
say.gencolor() -> str
Gives you a random color code.
say â
go
say(str) -> str
This prints given text with syntax highlighting feature.
say.error â
go
say.error(str) -> str
Says error to terminal.
say.warn â
go
say.warn(str) -> str
Says warning to terminal.
say.success â
go
say.success(str) -> str
Says success to terminal.
say.checkStatus â
go
say.checkStatus(status) -> str
This prints success or failure according to exit code.
Args:
status (int) > takes exit code.