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

[Feature] Add a --query option to the CLI #621

Open
emileturcotte opened this issue Dec 31, 2023 · 1 comment
Open

[Feature] Add a --query option to the CLI #621

emileturcotte opened this issue Dec 31, 2023 · 1 comment

Comments

@emileturcotte
Copy link

Hello,

Before anything, I'd like to say thank you to everyone who contributed, since this piece of software has immensely improved my XPS 15 battery life without the usual complexity, enabling me to work for much longer hours without charging.

I'm opening this feature request to propose a --query option on the CLI to enable users to obtain a specific value in plain text format. The use-cases I have for this is scripting and UI programming (custom widgets, for example). Autocomplete could be leveraged to provide the fields which can be queried.

This could look like :
Command : auto-cpufreq --query CPUAvg
Output : 42.67

If somebody has the time to quickly implement this (I assume it should be pretty straightforward to add), please go ahead; otherwise, I may do it myself in a couple of weeks/months, when I have more time ahead of me to dive into this project.

@AdnanHodzic
Copy link
Owner

Glad to hear auto-cpufreq has helped you and that would indeed be an interesting feature to have.

Since I'm very limited with available time to do this myself and project is looking for contributors if you want to give it a try in implementing this functionality, please give it a try and contribute to the project and you will be credited for your work as part of future release.

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

No branches or pull requests

2 participants