the ugliest mvp

This commit is contained in:
Bel LaPointe
2023-12-27 23:04:54 -05:00
parent bf3c1af8e5
commit a7581da4d1
4 changed files with 2530 additions and 122 deletions

View File

@@ -1,26 +1,26 @@
pub mod video;
use std::path::Path;
pub fn analyze(file: &str) -> String {
match _analyze(file) {
pub fn must_analyze(file: &str) -> String {
match analyze(file) {
Ok(result) => result,
Err(msg) => msg,
}
}
fn _analyze(file: &str) -> Result<String, String> {
pub fn analyze(file: &str) -> Result<String, String> {
eprintln!("analyzing {}", file);
Err(format!("not impl"))
}
pub fn clipify(file: &str) -> String {
match _clipify(file) {
pub fn must_clipify(file: &str) -> String {
match clipify(file) {
Ok(result) => result,
Err(msg) => msg,
}
}
fn _clipify(file: &str) -> Result<String, String> {
pub fn clipify(file: &str) -> Result<String, String> {
eprintln!("clipifying {}", file);
let files = video::clipify(&file.to_string())?;
match files.iter().nth(0) {