mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move printing inside the commands for install and uninstall
This commit is contained in:
parent
2f1454bebc
commit
c695ee9a9a
2 changed files with 8 additions and 6 deletions
|
|
@ -127,13 +127,9 @@ def run(argv):
|
|||
runner = Runner.create()
|
||||
|
||||
if args.command == 'install':
|
||||
retval = commands.install(runner)
|
||||
print 'pre-commit installed at {0}'.format(runner.pre_commit_path)
|
||||
return retval
|
||||
return commands.install(runner)
|
||||
elif args.command == 'uninstall':
|
||||
retval = commands.uninstall(runner)
|
||||
print 'pre-commit uninstalled'
|
||||
return retval
|
||||
return commands.uninstall(runner)
|
||||
elif args.command == 'run':
|
||||
if args.hook:
|
||||
return run_single_hook(runner, args.hook, all_files=args.all_files)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue