From f216646d2e824af726a7cd0d4d881577ea6dd0d8 Mon Sep 17 00:00:00 2001 From: Jon Bernard Date: Sun, 3 Jan 2016 22:37:49 -0500 Subject: Add cli tests --- dotfiles.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dotfiles.py') diff --git a/dotfiles.py b/dotfiles.py index f3bba1f..ce0d31a 100644 --- a/dotfiles.py +++ b/dotfiles.py @@ -175,7 +175,7 @@ def remove(repo, files): @cli.command() @click.option('-c', '--color', is_flag=True, help='Enable color.') -@click.option('-s', '--short', is_flag=True, help='Terse output.') +@click.option('-s', '--short', is_flag=True, help='Show terse output.') @pass_repo def status(repo, color, short): """Show all dotifles in a non-ok state.""" @@ -187,7 +187,7 @@ def status(repo, color, short): } if not short: - raise NotImplementedError('long output, use --short for now') + click.echo('long output not yet implemeted, using --short for now') dotfiles = repo.contents() for dotfile in dotfiles: -- cgit v1.2.3