]> git.r.bdr.sh - rbdr/blog/blobdiff - src/command/status/mod.rs
Generate and archive blog, allow publishing
[rbdr/blog] / src / command / status / mod.rs
index e8754f59eadb5e334c08c5f39c61fda299043efc..e620f78f8c8615fbe69c651a04552de28bec59dc 100644 (file)
@@ -1,4 +1,5 @@
 mod configuration_status;
 mod configuration_status;
+mod blog_status;
 
 use std::io::Result;
 use crate::configuration::Configuration;
 
 use std::io::Result;
 use crate::configuration::Configuration;
@@ -19,7 +20,7 @@ impl super::Command for Status {
     fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
         let status_providers = available_status_providers();
         for status_provider in status_providers {
     fn execute(&self, _: Option<&String>, configuration: &Configuration, _: &String) -> Result<()> {
         let status_providers = available_status_providers();
         for status_provider in status_providers {
-            println!("{}", status_provider(configuration));
+            println!("{}\n----\n", status_provider(configuration));
         }
         return Ok(())
     }
         }
         return Ok(())
     }
@@ -40,5 +41,6 @@ impl super::Command for Status {
 fn available_status_providers() -> Vec<fn(&Configuration) -> String> {
     vec![
         configuration_status::status,
 fn available_status_providers() -> Vec<fn(&Configuration) -> String> {
     vec![
         configuration_status::status,
+        blog_status::status,
     ]
 }
     ]
 }