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

How can we interact with bash? #130

Open
addlistener opened this issue May 8, 2023 · 3 comments
Open

How can we interact with bash? #130

addlistener opened this issue May 8, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@addlistener
Copy link

addlistener commented May 8, 2023

How can we interact with bash?

For use case example, how can we load cpu & mem usage like below?
image

This is achieved in https://tracesof.net/uebersicht/. I know plash is a pure website renderer but is it possible we support this by some kind of plugin mechanism?

@addlistener addlistener added the enhancement New feature or request label May 8, 2023
@sindresorhus
Copy link
Owner

I may do this at some point, but probably not soon. It's complicated to implement and it's not a popular request.

The recommended solution for now is to run a local server to serve the required info.

@addlistener
Copy link
Author

Is it possible that Plash implement some kinda command plugin/hooks to execute some commands?

It easier and we can manage the server you mentioned in Plash lifecycle.

@sindresorhus
Copy link
Owner

sindresorhus commented May 10, 2023

Is it possible that Plash implement some kinda command plugin/hooks to execute some commands?

That's what it would be and it's what's complicated to do. I will most likely have to create a helper app that has to be installed separately, since Plash is sandboxed and not allowed to execute external binaries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants