Root-Branch / cardamon

🌱 A tool for measuring the power consumption and carbon footprint of your software.
Other
13 stars 1 forks source link

Add cardamon init command #58

Open ohuu opened 4 days ago

ohuu commented 4 days ago

Currently we require the user to create a cardamon.toml file from scratch and include info that is a bit of a pain to add like processor name and processor TDP.

We should add a new command to cardamon called init which takes the user through a very simple setup process. We can use sysinfo and the techpowerup API to get the processor type and TDP to pre-fill the answers (but allow the user to override them if they want to)

After the setup process a new cardamon.toml is created with commented out example [[processes]], [[scenarios]] and [[observations]]

Welcome to Cardamon

Please enter you processor info:
Processor type: AMD Ryzen 7 PRO 6850U
Processor TDP: 65W