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