index : livejrnl-rs.git

ascending towards madness

author berrysweet <berrysweet@noreply.codeberg.org> 2023-07-07 21:44:15.0 +00:00:00
committer berrysweet <berrysweet@noreply.codeberg.org> 2023-07-07 21:44:15.0 +00:00:00
commit
a9dbea1205af88459df89eeea12994337cab81ad [patch]
tree
e6698922d20e680b71f29f5e56bb36f847166ff1
parent
fb9dec76f42495d702cc616b09ea482ee7bbb3e9
download
a9dbea1205af88459df89eeea12994337cab81ad.tar.gz

chore: remove printing debug info to stdout BREAKING CHANGE: stdout now only displays the render configuration and status.



Diff

 src/main.rs | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main.rs b/src/main.rs
index 277b089..ee387ef 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,7 +19,7 @@ const ERR_JOURNAL_NOT_FOUND: &str = "ERROR: No journal data specified.\n\nUsage:

fn main() {
	let args: LaunchArgs = LaunchArgs::parse_args_default_or_exit();
	println!("{:#?}", args);
	//println!("{:#?}", args);

	let mut jrnl_json: String = String::new();
	if let Some(pipe) = read_pipe::read_pipe() {
@@ -31,7 +31,7 @@ fn main() {
	}

	let journal: Journal = util::journal::parse_journal_json(&jrnl_json);
	println!("{:#?}", journal);
	//println!("{:#?}", journal);

	let config_data = load_config();
	match config_data {
@@ -39,7 +39,7 @@ fn main() {
			println!("{:#?}", config_data);

			let template_files = util::templating::get_templates(config_data.template.clone());
			println!("{:?}", template_files);
			//println!("{:?}", template_files);

			let html = util::templating::render_html(config_data, journal, &template_files);