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

begin moving functions to common.sh (top htop) #776

Open
wants to merge 30 commits into
base: master
Choose a base branch
from

Conversation

tschettervictor
Copy link
Contributor

@bmac2

This was a simple first task. Do you think something like this will work?

@tschettervictor tschettervictor changed the title begin moving functions to common.sh begin moving functions to common.sh (top htop) Dec 16, 2024
@yaazkal
Copy link
Collaborator

yaazkal commented Dec 17, 2024

why accepting ALL as a target for top and htop. How that will work?

@tschettervictor
Copy link
Contributor Author

why accepting ALL as a target for top and htop. How that will work?

That was already in the top and htop file. It works but you have to press CTRL+C to jump to the next one...

@tschettervictor
Copy link
Contributor Author

I've now changed it to where the set_target_single function will only set the target, and the check_target_exists will only verify that it exists. With this, it is probably necessary to first set, then check existence, the check if TARGET is running (only needed for some commands)

I've also modified it so htop and top now only accept one argument.

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

Successfully merging this pull request may close these issues.

2 participants