stub add
This commit is contained in:
@@ -6,8 +6,13 @@ use std::io::{BufRead, Read, Write};
|
||||
pub fn main() {
|
||||
let flags = Flags::new().expect("failed to flags");
|
||||
|
||||
if let Some(add) = flags.add {
|
||||
panic!("not impl: add {}", add);
|
||||
if let Some(added) = flags.add.clone() {
|
||||
add(
|
||||
flags.files().expect("couldnt find files from flags"),
|
||||
added,
|
||||
flags.add_schedule.clone(),
|
||||
)
|
||||
.expect("failed to add");
|
||||
}
|
||||
|
||||
if flags.edit {
|
||||
@@ -99,6 +104,10 @@ mod test_flags {
|
||||
}
|
||||
}
|
||||
|
||||
fn add(files: Vec<String>, add: String, add_schedule: Option<String>) -> Result<(), String> {
|
||||
Err("not impl".to_string())
|
||||
}
|
||||
|
||||
fn edit(files: Vec<String>) -> Result<(), String> {
|
||||
Err("not impl".to_string())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user