stjude-rust-labs / sprocket

A bioinformatics workflow engine built on top of the Workflow Description Language (WDL).
https://sprocket.bio
Apache License 2.0
31 stars 1 forks source link

feature: add a `--check` option to `sprocket format` #29

Open peterhuene opened 1 month ago

peterhuene commented 1 month ago

This option would be useful in CI where it would:

a-frantz commented 1 month ago

How much of the logic for --check should be in this repo? I think that if the answer is "all of it", this is going to be the first case of "business logic" living in the sprocket repo. Not exactly a problem, but something that should be done intentionally.

I wonder if this would make more sense to live in one of the wdl- crates (though which one isn't obvious to me).

peterhuene commented 1 month ago

I think it'd be fine to expose the "check" functionality from wdl-format.

a-frantz commented 1 month ago

I've flipflopped. The "check" functionality isn't really anything other than input == formatted. I think it's fine to house that logic within sprocket just to keep things simple. Consider my comment revoked.