Skip to content

Commit

Permalink
Implement init command
Browse files Browse the repository at this point in the history
- Added function for getting the cpu name from sysinfo.
- Added function for getting avg_power for cpu from Boavizta.
- Added CLI 'wizard' to create a new config.
- Cleaned template for example configs.
  • Loading branch information
ohuu committed Jul 26, 2024
1 parent 9061b86 commit 626dfd6
Show file tree
Hide file tree
Showing 12 changed files with 449 additions and 517 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -72,3 +72,4 @@ regex = "1.10.5"
tar = "0.4.41"
csv = "1.3.0"
strsim = "0.11.1"
colored = "2.1.0"
29 changes: 0 additions & 29 deletions examples/cardamon.example.toml

This file was deleted.

5 changes: 4 additions & 1 deletion fixtures/cardamon.missing_process.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.missing_scenario.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.multiple_iterations.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
5 changes: 4 additions & 1 deletion fixtures/cardamon.multiple_scenarios.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
debug_level = "info"
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
4 changes: 4 additions & 0 deletions fixtures/cardamon.success.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
metrics_server_url = "http://cardamon.rootandbranch.io"

[computer]
cpu_name = "AMD Ryzen 7 Pro 6850U with radeon"
cpu_avg_power = 11.223

[[processes]]
name = "db"
up = "powershell sleep 5" # "docker compose up -d"
Expand Down
Loading

0 comments on commit 626dfd6

Please sign in to comment.