erichdongubler-mozilla / treeherder-dl

An opinionated tool for downloading artifacts from Mozilla's CI ("Treeherder").
Apache License 2.0
0 stars 0 forks source link

Add `--preset`s for options #3

Open ErichDonGubler opened 1 year ago

ErichDonGubler commented 1 year ago

Did an experiment with #7 in which subcommands were used to take on presets and other conveniences like parsing URLs. I think the next thing to try is a layered configuration, where defaults can be specified in, say, a file that can be referred to from CLI (i.e., treeherder-dl --preset wpt.yml --revision X). This seems much easier to manage on both dev. and user sides than an ever-expanding set of baked-in presets with their own CLI and potential imperfections.