From 2d21c4a6e8b9458264227cb979b2cfd117eddf9d Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Fri, 28 Dec 2018 13:59:03 -0600 Subject: [PATCH 1/2] init: Do not show "now commit" message with --no-scm --- dvc/project.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dvc/project.py b/dvc/project.py index 0db6f9a1b..8d6b27b30 100644 --- a/dvc/project.py +++ b/dvc/project.py @@ -128,10 +128,10 @@ class Project(object): proj = Project(root_dir) scm.add([config.config_file]) + if scm.ignore_file(): scm.add([os.path.join(dvc_dir, scm.ignore_file())]) - - logger.info('\nYou can now commit the changes to git.') + logger.info('\nYou can now commit the changes to git.\n') proj._welcome_message() From 3ddc54403d013e502a25513e5b0584e88a739d2d Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Fri, 28 Dec 2018 13:59:28 -0600 Subject: [PATCH 2/2] init: Boxify message about analytics for more visibility --- dvc/project.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dvc/project.py b/dvc/project.py index 8d6b27b30..5eebf9d39 100644 --- a/dvc/project.py +++ b/dvc/project.py @@ -1234,20 +1234,24 @@ class Project(object): def _welcome_message(self): import colorama - logger.info( - "\n" + logger.box( "DVC has enabled anonymous aggregate usage analytics.\n" "Read the analytics documentation (and how to opt-out) here:\n" - "{blue}https://dvc.org/doc/user-guide/analytics{nc}\n" - "\n" + "{blue}https://dvc.org/doc/user-guide/analytics{nc}" + .format( + blue=colorama.Fore.BLUE, + nc=colorama.Fore.RESET + ), + border_color='red' + ) + + logger.info( "{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) )