-
|
I want to "log" certain things in my cli app, is Output the equivalent of click.echo ? |
Beta Was this translation helpful? Give feedback.
Answered by
DanCardin
Jul 17, 2025
Replies: 1 comment 2 replies
-
|
Yea I can definitely extract this into a PR improving the docs.
from cappa import Output, command
def invoke_callable(output: Output):
output.output("Print something [red]red[/]")
@command(invoke=invoke_callable)
class CLI: ... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#221 is at least a mild improvement, i think.