Add config path command

This commit is contained in:
Gabriel Augendre 2019-12-30 20:29:39 +01:00
parent 97f99cffce
commit 2b6698ee98
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -76,6 +76,13 @@ def edit(config: CleanTootsConfig):
click.secho("Not running in a terminal, can't open file.", fg="red") 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() @config_command.command()
@click.option( @click.option(
"-m", "-m",