stub edit
This commit is contained in:
@@ -4,7 +4,11 @@ use serde_yaml;
|
||||
use std::io::{BufRead, Read, Write};
|
||||
|
||||
pub fn main() {
|
||||
let _flags = Flags::new().expect("failed to flags");
|
||||
let flags = Flags::new().expect("failed to flags");
|
||||
|
||||
if flags.edit {
|
||||
edit(flags.files().expect("couldnt find files from flags")).expect("failed to edit");
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Parser)]
|
||||
@@ -91,6 +95,10 @@ mod test_flags {
|
||||
}
|
||||
}
|
||||
|
||||
fn edit(files: Vec<String>) -> Result<(), String> {
|
||||
Err("not impl".to_string())
|
||||
}
|
||||
|
||||
mod tests {
|
||||
use super::*;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user