Skip to content

status: support outputs as targets [qa] #4191

@jorgeorpinel

Description

@jorgeorpinel

Bug Report

UPDATE: Jump to #4191 (comment)


Looks like dvc status is recursive by default now (maybe always was) from some testing I just did:

λ dvc status
foo.dvc:
        changed outs:
                modified:           foo
data\raw.dvc:
        changed outs:
                modified:           data\raw

λ dvc status -R data/
data\raw.dvc:
        changed outs:
                modified:           data\raw
  1. So it's really just useful to limit the status to specific directories (not really about recursion).
  2. Why not just support dirs AND FILES as targets of the command, like all other commands that take targets (I think)?

Relater to treeverse/dvc.org#1384 (comment)

  1. In fact this is already supported by status, but only in remote mode (-r or -c options), which is kind of confusing (and complicates the docs).

Please provide information about your setup

DVC version: 1.1.2
Python version: 3.7.5
Platform: Windows-10-10.0.18362-SP0
Binary: True
Package: exe
Supported remotes: azure, gdrive, gs, hdfs, http, https, s3, ssh, oss
Cache: reflink - not supported, hardlink - supported, symlink - not supported
Filesystem type (cache directory): ('NTFS', 'C:\\')
Repo: dvc, git
Filesystem type (workspace): ('NTFS', 'C:\\')

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequesting a new featurep2-mediumMedium priority, should be done, but less important

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions