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

feat: Add JSON output option to battery and device list #26

Closed

Conversation

ladydascalie
Copy link

@ladydascalie ladydascalie commented Nov 12, 2023

This is a first pass investigating how to add JSON output to some (or all?) of the commands.
As I am not an experienced C programmer, any feedback is welcome, however for reference my plan was to simply use printf and manually handle the output in order to avoid having to bring in any third party dependencies for json serialization.

As there isn't a huge amount of output, I believe this is sustainable for the time being, but easily reworked if need be.

@ladydascalie
Copy link
Author

Addresses #26 (my own issue) in order to serve as a base for deciding on an approach

@nowrep
Copy link
Owner

nowrep commented Nov 13, 2023

I think it would be better to just do a global flag instead of adding it to each command: dualsensectl -j battery.

@ladydascalie
Copy link
Author

I honestly just don't have the time to look at this at the moment, so unfortunately I'm closing this. If anyone wants to take it over the finish line, feel free, but I don't want to leave this open forever when I'm not able to work on it.

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