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

Method from_arg

src/executor/config.rs:198–210  ·  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

196impl RepositoryOverride {
197 /// Creates a RepositoryOverride from an "owner/repository" string
198 pub fn from_arg(
199 repository_and_owner: String,
200 provider: Option<RepositoryProvider>,
201 ) -> Result<Self> {
202 let (owner, repository) = repository_and_owner
203 .split_once('/')
204 .context("Invalid owner/repository format")?;
205 Ok(Self {
206 owner: owner.to_string(),
207 repository: repository.to_string(),
208 repository_provider: provider.unwrap_or_default(),
209 })
210 }
211}
212
213impl OrchestratorConfig {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected