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

- Add carn run init command #60

Merged
merged 6 commits into from
Jul 26, 2024
Merged

- Add carn run init command #60

merged 6 commits into from
Jul 26, 2024

Conversation

seal
Copy link
Collaborator

@seal seal commented Jul 4, 2024

@ohuu
I have added the init command, I have opted to not use the string comparison algorithm, and opted for regex, let me know if this is acceptable.
Primarily because if the user forgets to add "K,U,..." to their CPU ( e.g. 'i7-13700k/u/...' or 'Ryzen 7 5700/X/X3D) it will prompt them for a manual choice

  • lib.rs unix test failed due to "name" being none
  • docker.rs test failed intermittently due to nanoid's "safe" alphabet including _ and -, I've updated that

Lib.rs and docker stuff can be removed and put into another branch / commit if needed ( They're v small changes )

    - This command uses techpowerup api for getting results
    - It also generates a default config
    - Added test for regex parsing of CPU name
- Fix docker.rs nano_id image name generation
    - Previously sometimes nano generated a name with _ or -
    this leads to docker failing to create a container and
    intermittend failing of tests
- Fix libs.rs unix test, match statement didn't consider name
@seal seal requested a review from ohuu July 4, 2024 13:07
@seal seal assigned ohuu and seal Jul 4, 2024
@seal seal linked an issue Jul 4, 2024 that may be closed by this pull request
@seal seal mentioned this pull request Jul 4, 2024
seal added 3 commits July 5, 2024 15:07
    - Removed tar, bytes & uuid
Added docker example to default config
@seal seal mentioned this pull request Jul 5, 2024
seal and others added 2 commits July 5, 2024 18:22
- 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.
@ohuu ohuu force-pushed the 58-add-cardamon-init-command branch from 626dfd6 to 73b6bab Compare July 26, 2024 17:05
@ohuu ohuu merged commit 0526d3f into main Jul 26, 2024
@ohuu ohuu deleted the 58-add-cardamon-init-command branch July 26, 2024 17:07
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.

Add cardamon init command
2 participants