I have this string:
form = '''
- {sha}: {message}
~> {commit_status_change}
=> {result_for_commit}
'''
Then I prepare parameters using click
(or any other tool) for coloring:
params = {
"sha": click.style(sha, bold=True),
"message": click.style(msg, bold=True),
"commit_status_change": click.style(change, fg="green"),
"result_for_commit": click.style(result, fg="green")
}
Lastly, I print the string:
print(form.format(**params))
I want to make =>
and ~>
symbols bold while keeping this neat form. How do I do it using python3?