MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / with_prefix

Method with_prefix

atomic-core/src/record/workflow/options.rs:209–212  ·  view source on GitHub ↗

Set the path prefix filter. Only files under this prefix will be processed. # Arguments `prefix` - Path prefix (e.g., "src/", "tests/") # Example ```rust use atomic_core::record::workflow::WorkflowOptions; let opts = WorkflowOptions::new().with_prefix("src/"); assert!(opts.matches_prefix("src/main.rs")); assert!(!opts.matches_prefix("tests/test.rs")); ```

(mut self, prefix: impl Into<String>)

Source from the content-addressed store, hash-verified

207 /// assert!(!opts.matches_prefix("tests/test.rs"));
208 /// ```
209 pub fn with_prefix(mut self, prefix: impl Into<String>) -> Self {
210 self.prefix = prefix.into();
211 self
212 }
213
214 /// Set the maximum file size for diffing.
215 ///

Callers 7

test_prefix_builder_strFunction · 0.45
test_builder_chainingFunction · 0.45
test_cloneFunction · 0.45
test_eqFunction · 0.45

Calls

no outgoing calls

Tested by 7

test_prefix_builder_strFunction · 0.36
test_builder_chainingFunction · 0.36
test_cloneFunction · 0.36
test_eqFunction · 0.36