mirror of
https://github.com/AdaCore/learn.git
synced 2026-02-12 13:00:42 -08:00
16 lines
355 B
Python
16 lines
355 B
Python
#! /usr/bin/env python3
|
|
|
|
import colors as C
|
|
|
|
def header(strn):
|
|
return C.col("{}\n{}\n".format(strn, '*' * len(strn)), C.Colors.BLUE)
|
|
|
|
def error(loc, strn):
|
|
print("{} {}: {}".format(C.col("ERROR", C.Colors.RED), loc, strn))
|
|
|
|
def simple_error(msg):
|
|
print(C.col(msg, C.Colors.RED))
|
|
|
|
def simple_success(msg):
|
|
print(C.col(msg, C.Colors.GREEN))
|