-
-
Notifications
You must be signed in to change notification settings - Fork 234
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
:write_stdout and :writeln_stdout internals #901
Conversation
These are the verbs I tested against
I'm seeing a few oddities here. In no particular order:
In summary,
As a final thought - in addition to text output, it might be worth supporting json output, too. That's a trendy thing to do these days, and would play quite nicely with object oriented shells like powershell. Or any shell could leverage something like |
A lot of good point. |
An approach might be to allow more settings to be carried by verb arguments, using the syntax I introduced at https://github.com/Canop/broot/blob/main/CHANGELOG.md#v091---2019-07-29 This could for example be I'll be cautious though, as I don't want to be carried into introducing user-side complexity solving only one problem. |
I'm dropping this PR and will try another approach. |
The
:writeln_stdout
internal allows recreating the:print_path
verb:but it's more generic.
With the
:write_stdout
, you can for example write the path without the trailing newline: