mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 13:36:14 +02:00
Fix bug that prevented --format pretty and --format short from working (#1177)
This commit is contained in:
parent
b9a6d029e2
commit
a3f4f6b944
7 changed files with 79 additions and 2 deletions
|
@ -407,6 +407,12 @@ def all_input_was_used(context):
|
|||
def run(context, command, text=""):
|
||||
text = text or context.text or ""
|
||||
|
||||
if "config_path" in context and context.config_path is not None:
|
||||
with open(context.config_path) as f:
|
||||
context.jrnl_config = yaml.load(f, Loader=yaml.FullLoader)
|
||||
else:
|
||||
context.jrnl_config = None
|
||||
|
||||
if "cache_dir" in context and context.cache_dir is not None:
|
||||
cache_dir = os.path.join("features", "cache", context.cache_dir)
|
||||
command = command.format(cache_dir=cache_dir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue