-
Notifications
You must be signed in to change notification settings - Fork 394
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
api: add list command #967
Conversation
@@ -0,0 +1,40 @@ | |||
# list | |||
|
|||
List file structure of a repo including <abbr>data artifacts</abbr> |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dvc list
can list simple folder (without .git
), shouldn't it be pointed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would mention it in the description - that's what it is for - to elaborate and expand
|
||
## Description | ||
|
||
The command list files and <abbr>data artifacts</abbr> into pointed repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to expand and elaborate here. No need to repeat just the same phrase we used to above. Even http://man7.org/linux/man-pages/man1/ls.1.html has something meaningful and non-repetitive here.
Would be great to expand on the fact that we show actual data behind DVC-files. That it can be used before dvc get
to see that file name to path (which is not easy with Github), etc.
|
||
- `--outputs-only` - Show only <abbr>data artifacts</abbr>. | ||
|
||
- `-R`, `--recursive` - Recursively traverse the repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the repo -> the target? actually it's is the path (that's why I don't like the target name for the CLI argument)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the aws s3 ls and ls man pages. traverse is not the right verb here ... print, list, etc are better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. If target
can only be a directory path, why not call it path
or dir
? (Also commenting in /pull/967)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JIoJIaJIu good stuff, see some comments please!
Please let us know when iterative/dvc/pull/3246 is merged to check this doc vs the final behavior of the command π |
@shcheklein @jorgeorpinel Could you take a look please on the PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good to me! I think we can take if from here @jorgeorpinel ?
|
||
- `--outputs-only` - Show only <abbr>data artifacts</abbr>. | ||
|
||
- `-R`, `--recursive` - Recursively traverse the repo. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree. If target
can only be a directory path, why not call it path
or dir
? (Also commenting in /pull/967)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure @shcheklein, let's.
Some first basic comments on this for now (above) ^
@JIoJIaJIu any chance you could move this to a regular branch in this repo though? If not, it's OK. Please check out https://github.com/iterative/dvc.org/wiki/2.-dvc.org-pull-requests-for-core-repo-changes for future ref. π |
I've create a new PR - #1021 and close this one
I suggest to apply my current PR and in the next iteration I will rename |
Thanks Guro!
Yep no rush, it's included in iterative/dvc/issues/3381 actually so it should be addressed whenever someone takes that issue. |
Relates:
β Please read the guidelines in the Contributing to the Documentation list if you make any substantial changes to the documentation or JS engine.
π Please make sure to mention
Fix #issue
(if applicable) in the description of the PR. This enables GitHub to link the PR to the corresponding bug and close it automatically when PR is merged.Thank you for the contribution - we'll try to review and merge it as soon as possible. π