From 2b6698ee9881c637305b26a0ea6d22f05af60ac1 Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Mon, 30 Dec 2019 20:29:39 +0100 Subject: [PATCH] Add config path command --- cleantoots/commands/config.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cleantoots/commands/config.py b/cleantoots/commands/config.py index 9bb4cd1..58af968 100644 --- a/cleantoots/commands/config.py +++ b/cleantoots/commands/config.py @@ -76,6 +76,13 @@ def edit(config: CleanTootsConfig): click.secho("Not running in a terminal, can't open file.", fg="red") +@config_command.command() +@click.pass_obj +def path(config: CleanTootsConfig): + """Print config path and exit.""" + click.echo(config.dir) + + @config_command.command() @click.option( "-m",