MCPcopy Create free account
hub / github.com/Lintermute/lazy_errors / run_import

Function run_import

xtask/src/version.rs:149–154  ·  view source on GitHub ↗
(args: &ImportArgs)

Source from the content-addressed store, hash-verified

147}
148
149fn run_import(args: &ImportArgs) -> Result<()> {
150 crate::exec_and_capture(&["git", "describe", "--dirty"])
151 .and_then(|stdout| parse_and_filter(&stdout, &args.accept))
152 .and_then(|v| crate::exec(&["cargo", "set-version", &v.to_string()]))
153 .or_wrap_with(|| "Failed to set version number based on `git describe`")
154}
155
156fn parse_and_filter(
157 git_output: &str,

Callers 1

runFunction · 0.85

Calls 4

exec_and_captureFunction · 0.85
parse_and_filterFunction · 0.85
execFunction · 0.85
or_wrap_withMethod · 0.80

Tested by

no test coverage detected