summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2022-04-20 06:40:35 +0000
committerLars Wirzenius <liw@liw.fi>2022-04-20 06:40:35 +0000
commit4305a22cd719ec1aaadb46796bbd7fc84f2161f0 (patch)
tree02c81f436be6be37485accd68f8c08c611743a0a
parent3ccd572ef77740c5c826875b53fa9db80066787e (diff)
parent65c8037a908c1de8dcd11072e5bfa08094388707 (diff)
downloadjt2-4305a22cd719ec1aaadb46796bbd7fc84f2161f0.tar.gz
Merge branch 'liw/fixes' into 'main'
fix test suite failures See merge request larswirzenius/jt!30
-rw-r--r--jt.md2
-rw-r--r--src/cmd.rs5
-rw-r--r--subplot/jt.yaml2
3 files changed, 8 insertions, 1 deletions
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(())
}
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