Skip to content

Refactor csm env <subcmd> a bit - #23

Merged
relrod merged 5 commits into
Checkmk:mainfrom
relrod:env-name-dedupe
Nov 14, 2025
Merged

relrod merged 5 commits into
Checkmk:mainfrom
relrod:env-name-dedupe

Conversation

@relrod

@relrod relrod commented Nov 14, 2025

Copy link
Copy Markdown
Member

Since run()s can now return a Result, let's use that here to de-duplicate some logic for pulling out the micromamba env name.

Specifically implement it for E = std::io::Error instead of
E: std::fmt::Display, because otherwise, if we want to implement it for
more specific error types, we get overlapping impls.
@relrod
relrod requested a review from jherbel November 14, 2025 11:24
@relrod
relrod merged commit a2cdb56 into Checkmk:main Nov 14, 2025
2 checks passed
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