MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / value_variants

Method value_variants

src/cli/run/mod.rs:260–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

258// and `git-lab`
259impl clap::ValueEnum for RepositoryProvider {
260 fn value_variants<'a>() -> &'a [Self] {
261 &[Self::GitLab, Self::GitHub]
262 }
263 fn to_possible_value<'a>(&self) -> ::std::option::Option<clap::builder::PossibleValue> {
264 match self {
265 Self::GitLab => Some(clap::builder::PossibleValue::new("gitlab").aliases(["gl"])),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected