seerge / g-helper

Lightweight Armoury Crate alternative for Asus laptops and ROG Ally. Control tool for ROG Zephyrus G14, G15, G16, M16, Flow X13, Flow X16, TUF, Strix, Scar and other models
https://seerge.github.io/g-helper/
GNU General Public License v3.0
7.41k stars 265 forks source link

[Feature] CLI support #1

Closed nopeless closed 1 year ago

nopeless commented 1 year ago

Will the project support cli mode and JSON like stats?

ex)

> g14-helper status -f json
{
  "refresh_rate": 120,
  "mode": "eco"
}
> g14-helper set refresh_rate 65
Err: valid options are 60, 120

I am willing to help on this issue

seerge commented 1 year ago

That will be possible in future, I have just added support of JSON config files to the app. Loading custom config via CLI won't be difficult from here.

seerge commented 1 year ago

Closing this, as it's not relevant anymore, as app has grown up and not a powershell script :)

nopeless commented 1 year ago

I don't think it being a powershell script or not is relevant, but I don't have time to contribute to this repository at the moment so who am I to tell otherwise.

Keep up the good work 👍

colemickens commented 1 year ago

This is something I'm still interested in, but also not qualified or able to work on.

Particularly, asusctl in Linux is nice because I have a command that calls asusctl to switch the dGPU, then call efibootmgr to set the bootnext efivar, and then reboot.

Similarly, I have a reboot-linux.bat that use bcedit to set (whatever it calls the bootnext variable), but I currently don't have a good way to flip it back to Integrated without opening GHelper.

It's a super minor request, of course, and GHelper and it's GUI are so clean and nice I feel guilty even asking.

EDIT: I didn't realize it was Csharp, maybe I could hack something together. Or if it'd be better as a separate binary?