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 spoiled by the PowerShell, and I think in terms of objects when speaking about command output.
Obviously, this library is not for creating commandlets but for regular CLIs, but the concept, IMO, is stiil relevant.
Command execution should have:
Exit code
Human (machine?) readabe text output/log (controlled by --verbosity option?)
Strongly typed result which is formatted and directed to stdout. (as json, for example)
Log and result should be easily distinquiashable from each other to easily pipe result to other commands.
Do I understand it right that currently System.CommandLine library does not have these capabilites?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am spoiled by the PowerShell, and I think in terms of objects when speaking about command output.
Obviously, this library is not for creating commandlets but for regular CLIs, but the concept, IMO, is stiil relevant.
Command execution should have:
--verbosity
option?)Log and result should be easily distinquiashable from each other to easily pipe result to other commands.
Do I understand it right that currently System.CommandLine library does not have these capabilites?
Beta Was this translation helpful? Give feedback.
All reactions