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