🎨 git-status-all: use Path for topdirs

master
neingeist 11 months ago
parent 9e473bced8
commit 7334d6c99e

@ -39,13 +39,14 @@ def working_directory(directory: Path):
@click.command
@click.argument('topdirs', nargs=-1)
@click.argument('topdirs', nargs=-1, type=click.Path(exists=True, file_okay=False,
path_type=Path))
@click.option('-l', '--list', 'list_', is_flag=True, default=False,
help='Just list the dirty directories')
def search_dirty(topdirs, list_):
"""Search for dirty git working directories in TOPDIRS"""
if len(topdirs) == 0:
topdirs = ["."]
topdirs = [Path(".")]
for topdir in topdirs:
for git_directory in git_directories(topdir):

Loading…
Cancel
Save