refactor: move print statement to main
This commit is contained in:
@@ -160,9 +160,6 @@ pub fn expand_tilde(path: &str) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn print_schedule(video_files: &Vec<String>, schedule: &Vec<DateTime<Utc>>) {
|
pub fn print_schedule(video_files: &Vec<String>, schedule: &Vec<DateTime<Utc>>) {
|
||||||
// Display schedule
|
|
||||||
println!("Upload Schedule:");
|
|
||||||
println!("================");
|
|
||||||
for (i, (video_file, scheduled_time)) in video_files.iter().zip(schedule.iter()).enumerate() {
|
for (i, (video_file, scheduled_time)) in video_files.iter().zip(schedule.iter()).enumerate() {
|
||||||
println!(
|
println!(
|
||||||
"{}. {} -> {}",
|
"{}. {} -> {}",
|
||||||
|
|||||||
@@ -54,6 +54,10 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
metadata[i].privacy_status = "private".to_string(); // Set to private for scheduling
|
metadata[i].privacy_status = "private".to_string(); // Set to private for scheduling
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Display schedule
|
||||||
|
println!("Upload Schedule:");
|
||||||
|
println!("================");
|
||||||
print_schedule(&video_files, &schedule);
|
print_schedule(&video_files, &schedule);
|
||||||
|
|
||||||
if dry_run {
|
if dry_run {
|
||||||
|
|||||||
Reference in New Issue
Block a user