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

Method value_variants

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

Source from the content-addressed store, hash-verified

293// and `git-lab`
294impl clap::ValueEnum for RepositoryProvider {
295 fn value_variants<'a>() -> &'a [Self] {
296 &[Self::GitLab, Self::GitHub]
297 }
298 fn to_possible_value<'a>(&self) -> ::std::option::Option<clap::builder::PossibleValue> {
299 match self {
300 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