You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working on a web app that doesn't have access to stdout and I was able to replace the output of the program with .configureOutput(), but I am not really sure how I would access the API from inside the actions. All examples use console, and I don't see any public API to write/print with Command. For now, I am using a proxy on top of window.console to be able to print from the actions, but perhaps there is a more elegant way, or something that I am missing.
The text was updated successfully, but these errors were encountered:
There isn't a custom API for using writeOut and writeErr directly. The main use of writeOut is displaying the help, and there are .help() and .outputHelp() routines to trigger that directly. For errors, there is the .error() method to display and handle a custom error the same way Commander does.
However, you can retrieve the configured output and use it yourself:
I am working on a web app that doesn't have access to stdout and I was able to replace the output of the program with
.configureOutput()
, but I am not really sure how I would access the API from inside the actions. All examples useconsole
, and I don't see any public API to write/print withCommand
. For now, I am using a proxy on top ofwindow.console
to be able to print from the actions, but perhaps there is a more elegant way, or something that I am missing.The text was updated successfully, but these errors were encountered: