import: add "beta feature" warning

This commit is contained in:
Ruslan Kuprieiev
2019-06-25 01:54:32 +03:00
parent baccc06ec4
commit 2141a5ac65
+7 -1
View File
@@ -12,6 +12,11 @@ logger = logging.getLogger(__name__)
class CmdImport(CmdBase):
def run(self):
logger.warn(
"This is a beta feature! Do not use in the production! Old "
"`dvc import` is now called `dvc import-url`, please use "
"it instead."
)
try:
self.repo.imp(
self.args.url,
@@ -31,7 +36,8 @@ class CmdImport(CmdBase):
def add_parser(subparsers, parent_parser):
IMPORT_HELP = (
"Download data from DVC repository and take it under DVC control."
"BETA: Download data from DVC repository and take it under DVC "
"control."
)
import_parser = subparsers.add_parser(