Port infra-rebuild to Python
Do this for a nicer developer experience in a safer language, which has nice libraries available to e.g. build command line interfaces (e.g. click). Set minimum Python version to 3.10 to support match statements.
This commit is contained in:
parent
500438636a
commit
05c45fe5e3
10 changed files with 207 additions and 216 deletions
13
src/infra_rebuild/msg/__init__.py
Normal file
13
src/infra_rebuild/msg/__init__.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
import click
|
||||
|
||||
|
||||
def info(message):
|
||||
click.echo(click.style(message, bold=True, fg="bright_blue"))
|
||||
|
||||
|
||||
def warning(message):
|
||||
click.echo(click.style(message, bold=True, fg="bright_yellow"), err=True)
|
||||
|
||||
|
||||
def error(message):
|
||||
click.echo(click.style(message, bold=True, fg="bright_red"), err=True)
|
Loading…
Add table
Add a link
Reference in a new issue