feat: add accepting input piped from jrnl
Diff
Cargo.toml | 1 +
src/main.rs | 6 ++++++
2 files changed, 7 insertions(+)
@@ -9,3 +9,4 @@ edition = "2021"
confy = "0.5.1"
serde = { version = "1.0.164", features = ["derive"] }
walkdir = "2.3.3"
read_pipe = "0.1.2"
\ No newline at end of file
@@ -8,6 +8,12 @@ mod util {
const APP_NAME: &str = "livejrnl-rs";
fn main() {
let mut jrnl_json: String = String::new();
if let Some(pipe) = read_pipe::read_pipe() {
jrnl_json.push_str(&pipe);
}
println!("{:#?}", jrnl_json);
let config_data = load_config();
match config_data {
Ok(config_data) => {