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

Method from_arg

src/executor/config.rs:142–154  ·  view source on GitHub ↗

Creates a RepositoryOverride from an "owner/repository" string

(
        repository_and_owner: String,
        provider: Option<RepositoryProvider>,
    )

Source from the content-addressed store, hash-verified

140impl RepositoryOverride {
141 /// Creates a RepositoryOverride from an "owner/repository" string
142 pub fn from_arg(
143 repository_and_owner: String,
144 provider: Option<RepositoryProvider>,
145 ) -> Result<Self> {
146 let (owner, repository) = repository_and_owner
147 .split_once('/')
148 .context("Invalid owner/repository format")?;
149 Ok(Self {
150 owner: owner.to_string(),
151 repository: repository.to_string(),
152 repository_provider: provider.unwrap_or_default(),
153 })
154 }
155}
156
157impl OrchestratorConfig {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected