From 02e589a25c020637523edc0b1f1237efed4ba12e Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Mon, 19 Nov 2018 22:35:30 -0600 Subject: [PATCH] init: Add a welcome message Close #1184 --- dvc/project.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/dvc/project.py b/dvc/project.py index 5763bc2c7..053e39160 100644 --- a/dvc/project.py +++ b/dvc/project.py @@ -78,6 +78,7 @@ class Project(object): Raises: KeyError: Raises an exception. """ + import colorama import shutil from dvc.scm import SCM, Base from dvc.config import Config @@ -105,7 +106,21 @@ class Project(object): if scm.ignore_file(): scm.add([os.path.join(dvc_dir, scm.ignore_file())]) - Logger.info('You can now commit the changes to git.') + Logger.info('\nYou can now commit the changes to git.') + + Logger.info( + "\n" + "{yellow}What's next?{nc}\n" + "{yellow}------------{nc}\n" + "- Check out the documentation: {blue}https://dvc.org/doc{nc}\n" + "- Get help and share ideas: {blue}https://dvc.org/chat{nc}\n" + "- Star us on GitHub: {blue}https://github.com/iterative/dvc{nc}" + + .format(yellow=colorama.Fore.YELLOW, + blue=colorama.Fore.BLUE, + green=colorama.Fore.GREEN, + nc=colorama.Fore.RESET) + ) return proj