diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-20 09:33:58 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-20 09:34:14 +0300 |
commit | 65c8037a908c1de8dcd11072e5bfa08094388707 (patch) | |
tree | 02c81f436be6be37485accd68f8c08c611743a0a | |
parent | 3cbbb88b48c789665b8eb61fa8460c1cd4edc920 (diff) | |
download | jt2-65c8037a908c1de8dcd11072e5bfa08094388707.tar.gz |
fix: init to use all its members
Sponsored-by: author
-rw-r--r-- | jt.md | 2 | ||||
-rw-r--r-- | src/cmd.rs | 5 |
2 files changed, 6 insertions, 1 deletions
@@ -248,7 +248,7 @@ then there are no uncommitted changes in jrnl ## Remove a draft Verify that we can remove a draft, and then create a new one. - + ~~~scenario given an installed jt @@ -1,6 +1,7 @@ use crate::config::Configuration; use crate::error::JournalError; use crate::journal::Journal; +use log::debug; use std::path::PathBuf; use structopt::StructOpt; @@ -25,6 +26,10 @@ pub struct Init { impl Init { pub fn run(&self, config: &Configuration) -> Result<(), JournalError> { + debug!( + "init: journalname={:?} description={:?}", + self.journalname, self.description + ); Journal::init(&config.dirname, &config.entries)?; Ok(()) } |