dvc: add basic 'dvc status'

(dvc) ➜  myrepo git:(master) ✗ dvc status
foo.dvc
        outs
                changed:  foo
foo2.dvc
        outs
                changed:  foo2
        deps
                changed:  foo1
foo1.dvc
        outs
                changed:  foo1
        deps
                changed:  foo

(dvc) ➜  myrepo git:(master) ✗ dvc status --cloud

        new:      c1/57a79031e1c40f85931829bc5fc552

Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
Ruslan Kuprieiev
2018-03-16 10:58:09 +02:00
parent 06ff91af62
commit 71fef4d857
5 changed files with 88 additions and 18 deletions
+6 -1
View File
@@ -163,7 +163,12 @@ def parse_args(argv=None):
status_parser = subparsers.add_parser(
'status',
parents=[parent_cache_parser],
help='Show mismatches between local cache and cloud cache')
help='Show the project status')
status_parser.add_argument('-c',
'--cloud',
action='store_true',
default=False,
help='Show status of a local cache compared to a cloud')
status_parser.set_defaults(func=CmdDataStatus)
# Repro