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

Refresh default action #11

Closed
never147 opened this issue Jun 4, 2023 · 5 comments
Closed

Refresh default action #11

never147 opened this issue Jun 4, 2023 · 5 comments
Assignees
Labels
enhancement New feature or request

Comments

@never147
Copy link
Contributor

never147 commented Jun 4, 2023

Feature request! Possibly simple one. Could you please make refresh the default action in the main prompt? So select 1-N for account id, t for tz, x for exit, enter to refresh.

For extra points perhaps refresh every minute? 😬🤔

Thanks!

@shupershuff
Copy link
Owner

Thanks, this is a good idea.
I had previously thought about this too but have held off implementing as essentially the script would need to constantly be running and checking running processes. Not sure how intensive this would be and I imagine the menu would flicker. It would also require concurrent processing to be performed which is something I've never tackled before in PowerShell.

You might see this in a future release, you might not if it's too tricky or comes with too much baggage.

@shupershuff shupershuff self-assigned this Jun 4, 2023
@shupershuff shupershuff added the enhancement New feature or request label Jun 4, 2023
@never147
Copy link
Contributor Author

never147 commented Jun 4, 2023 via email

@shupershuff
Copy link
Owner

I'm not sure that this is possible do perform with PowerShell's limitations. Separate PowerShell processes (or background jobs) can't relay input information into another PowerShell session. I will keep investigating but for now this seems unlikely. Happy to take any advice in this area, I'm still a bit of a novice when it comes to writing PS scripts.

An actual programming language could get around this easily but I'm not a programmer and I also want to keep this as just a script rather than an executable so people have visibility of what it is they're about to run.

@never147
Copy link
Contributor Author

Hey, just did a pull request for what I was thinking. Don't feel obligated to use it. Just thought I'd make a stab at it. It's the first PowerShell I've written so it's probably trash! haha.

@never147
Copy link
Contributor Author

Resolved by #13

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