MCPcopy Create free account
hub / github.com/3eif/gitmotion / check_dependencies

Function check_dependencies

api/src/main.rs:697–705  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

695}
696
697fn check_dependencies() -> Result<(), String> {
698 let dependencies = vec!["git", "gource", "ffmpeg", "xvfb-run"];
699 for dep in dependencies {
700 if let Err(_) = Command::new(dep).arg("--version").output() {
701 return Err(format!("{} is not available", dep));
702 }
703 }
704 Ok(())
705}
706
707async fn serve_video(req: HttpRequest, job_id: web::Path<String>) -> Result<HttpResponse> {
708 let video_path = PathBuf::from(format!("/gource_videos/gource_{}.mp4", job_id));

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected