mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
add an analytics notice on dvc init
This commit is contained in:
@@ -3,6 +3,7 @@ neatlynx/__pycache__
|
|||||||
.idea
|
.idea
|
||||||
cache
|
cache
|
||||||
*.pyc
|
*.pyc
|
||||||
|
.env/
|
||||||
|
|
||||||
cache
|
cache
|
||||||
.dvc.conf.lock
|
.dvc.conf.lock
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ from dvc.logger import logger
|
|||||||
|
|
||||||
|
|
||||||
class Analytics(object):
|
class Analytics(object):
|
||||||
URL = 'https://analytics.dvc.org/'
|
URL = 'https://analytics.dvc.org'
|
||||||
TIMEOUT_POST = 5
|
TIMEOUT_POST = 5
|
||||||
|
|
||||||
USER_ID_FILE = 'user_id'
|
USER_ID_FILE = 'user_id'
|
||||||
|
|||||||
+1
-1
@@ -111,7 +111,7 @@ def parse_args(argv=None):
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
default=False,
|
default=False,
|
||||||
help="Initiate dvc in directory that is "
|
help="Initiate dvc in directory that is "
|
||||||
"not tracked by any scm tool(e.g. git).")
|
"not tracked by any scm tool (e.g. git).")
|
||||||
init_parser.add_argument(
|
init_parser.add_argument(
|
||||||
'-f',
|
'-f',
|
||||||
'--force',
|
'--force',
|
||||||
|
|||||||
@@ -1216,6 +1216,10 @@ class Project(object):
|
|||||||
import colorama
|
import colorama
|
||||||
|
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
|
"\n"
|
||||||
|
"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"
|
"\n"
|
||||||
"{yellow}What's next?{nc}\n"
|
"{yellow}What's next?{nc}\n"
|
||||||
"{yellow}------------{nc}\n"
|
"{yellow}------------{nc}\n"
|
||||||
|
|||||||
+1
-1
@@ -11,7 +11,7 @@ from dvc.utils import is_binary
|
|||||||
|
|
||||||
|
|
||||||
class Updater(object): # pragma: no cover
|
class Updater(object): # pragma: no cover
|
||||||
URL = 'https://updater.dvc.org/'
|
URL = 'https://updater.dvc.org'
|
||||||
UPDATER_FILE = 'updater'
|
UPDATER_FILE = 'updater'
|
||||||
TIMEOUT = 24 * 60 * 60 # every day
|
TIMEOUT = 24 * 60 * 60 # every day
|
||||||
TIMEOUT_GET = 10
|
TIMEOUT_GET = 10
|
||||||
|
|||||||
Reference in New Issue
Block a user