From 3cbbb88b48c789665b8eb61fa8460c1cd4edc920 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Mon, 18 Apr 2022 17:50:25 +0300 Subject: fix: mark type of captured name of embedded file Sponsored-by: author --- subplot/jt.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subplot/jt.yaml b/subplot/jt.yaml index 90ca3ef..0c50413 100644 --- a/subplot/jt.yaml +++ b/subplot/jt.yaml @@ -4,6 +4,8 @@ function: install_jt - given: "an executable script {filename}" + types: + filename: file impl: python: function: create_script -- cgit v1.2.1 From 65c8037a908c1de8dcd11072e5bfa08094388707 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 20 Apr 2022 09:33:58 +0300 Subject: fix: init to use all its members Sponsored-by: author --- jt.md | 2 +- src/cmd.rs | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/jt.md b/jt.md index ce8b888..a0e48a4 100644 --- a/jt.md +++ b/jt.md @@ -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 diff --git a/src/cmd.rs b/src/cmd.rs index 3de0e95..9cec3b5 100644 --- a/src/cmd.rs +++ b/src/cmd.rs @@ -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(()) } -- cgit v1.2.1