Skip to content

Commit

Permalink
Change color of 'valid'
Browse files Browse the repository at this point in the history
  • Loading branch information
romain-intel committed Jan 29, 2024
1 parent a00c663 commit f8e05cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions metaflow/cmd/develop/stubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,10 @@ def print_status(ctx: click.Context, msg: str, valid: bool):
if ctx.obj.quiet:
ctx.obj.echo_always("valid" if valid else "invalid")
else:
ctx.obj.echo(
"Metaflow stubs are *%s*: " % ("valid" if valid else "invalid") + msg
)
ctx.obj.echo("Metaflow stubs are ", nl=False)
if valid:
ctx.obj.echo("valid", fg="green", nl=False)
else:
ctx.obj.echo("invalid", fg="red", nl=False)
ctx.obj.echo(": " + msg)
return

0 comments on commit f8e05cd

Please sign in to comment.