mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-26 07:18:31 +01:00
Add --no-locker param
This commit is contained in:
@@ -51,11 +51,17 @@ class CmdBase(object):
|
||||
def set_skip_git_actions(self, parser):
|
||||
parser.add_argument('--skip-git-actions', '-s', action='store_true',
|
||||
help='Skip all git actions including reproducibility check and commits')
|
||||
parser.add_argument('--no-lock', '-L', action='store_true', default=False,
|
||||
help='Do not set DVC locker')
|
||||
|
||||
@property
|
||||
def skip_git_actions(self):
|
||||
return self.parsed_args.skip_git_actions
|
||||
|
||||
@property
|
||||
def is_locker(self):
|
||||
return not self.parsed_args.no_lock
|
||||
|
||||
def commit_if_needed(self, message, error=False):
|
||||
if error or self.skip_git_actions:
|
||||
self.not_committed_changes_warning()
|
||||
|
||||
Reference in New Issue
Block a user