the ugliest mvp
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user