Skip to content
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

passThroughCommand like prop #672

Closed
scovic opened this issue Aug 5, 2020 · 3 comments
Closed

passThroughCommand like prop #672

scovic opened this issue Aug 5, 2020 · 3 comments
Labels
wontfix This will not be worked on

Comments

@scovic
Copy link

scovic commented Aug 5, 2020

Is there a prop that I can use to handle my input (command), so I can take the input, send it over network (http, ws, ...) and then print the result I get, without checking if the input is part of commands prop, so i don't get Command 'my-command' not found! ?

@linuswillner
Copy link
Owner

linuswillner commented Aug 5, 2020

If I understand you correctly, you're looking for a method to take input, run an async task, and then push the result to the terminal separately? Could Async output be what you're looking for?

@linuswillner linuswillner added the question Further information is requested label Aug 5, 2020
@scovic
Copy link
Author

scovic commented Aug 5, 2020

Yes, but i don't want to define a command for it in commands prop, i want to take whole raw input and send it over the network.

@linuswillner
Copy link
Owner

Ah, so you're looking for something akin to what was suggested in #415, and just pass all of it through. Unfortunately, I have in the past declined to add this feature for a multitude of reasons, not least of which being the ones outlined in #415 (comment). That feature is still unviable for me to dedicate lots of time and effort to (The former of which I don't have a whole lot) when actual quality-of-life improvements are still on the docket.

I might implement something like this one day, but for now, I can't promise anything. If you absolutely need to pass the input over the network sight unseen, then your best option is probably to look for a terminal library with a lesser focus on a ready-made command API.

@linuswillner linuswillner added wontfix This will not be worked on and removed question Further information is requested labels Aug 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants