Add config path command
This commit is contained in:
parent
97f99cffce
commit
2b6698ee98
1 changed files with 7 additions and 0 deletions
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue