From dba4301eb608ed7e6de3f130d9e494bd152d53a2 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Sat, 20 Nov 2021 15:16:28 +0100 Subject: [PATCH] Add config show file name command --- ofx_processor/utils/config.py | 8 +++++++- pyproject.toml | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ofx_processor/utils/config.py b/ofx_processor/utils/config.py index df953a5..b42b756 100644 --- a/ofx_processor/utils/config.py +++ b/ofx_processor/utils/config.py @@ -38,12 +38,18 @@ def config(): """Manage configuration.""" -@config.command("edit") +@config.command("edit", help="Edit the config file.") def edit_config(): config_file = get_config_file_name() click.edit(filename=config_file) +@config.command("file", help="Print the config file path.") +def show_file_name(): + config_file = get_config_file_name() + click.echo(config_file) + + @dataclass(frozen=True) class Config: account: str diff --git a/pyproject.toml b/pyproject.toml index 2c58042..7bd9dda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ofx-processor" -version = "3.1.0" +version = "3.2.0" description = "Personal ofx processor" readme = "README.md" license = "GPL-3.0-or-later"