mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-08 07:18:27 +01:00
14 lines
436 B
Python
14 lines
436 B
Python
from dvc.command.base import CmdBase
|
|
|
|
|
|
class CmdCheckout(CmdBase):
|
|
def run(self):
|
|
if not self.args.targets:
|
|
self.project.checkout(force=self.args.force)
|
|
else:
|
|
for target in self.args.targets:
|
|
self.project.checkout(target=target,
|
|
with_deps=self.args.with_deps,
|
|
force=self.args.force)
|
|
return 0
|