Skip to content
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

ls: implement --tree to show as a tree and --level to limit depth for recursion #10598

Merged
merged 1 commit into from
Oct 23, 2024

Conversation

skshetry
Copy link
Member

@skshetry skshetry commented Oct 22, 2024

$ dvc ls https://github.com/iterative/dataset-registry -TL2
.
├── README.md
├── blog
│   ├── .gitignore
│   └── cats-dogs
├── dvc-course
│   ├── .gitignore
│   └── hymenoptera_data
├── get-started
│   ├── .gitignore
│   └── data.xml
├── github-issues
│   ├── .gitignore
│   └── dataset.parquet
├── images
│   ├── .gitignore
│   ├── dvc-logo-outlines.png
│   ├── owl_sticker.png
│   └── owl_sticker.svg
├── tutorials
│   ├── nlp
│   └── versioning
├── use-cases
│   ├── .gitignore
│   ├── cats-dogs
│   └── pool_data
└── workshop
    ├── .gitignore
    ├── README.md
    ├── dvc_discord_channel.csv
    └── satellite-data
$ dvc ls https://github.com/iterative/dataset-registry -RL2
README.md
blog/.gitignore
blog/cats-dogs
blog/cats-dogs.dvc
dvc-course/.gitignore
dvc-course/hymenoptera_data
dvc-course/hymenoptera_data.dvc
dvc.yaml
get-started/.gitignore
get-started/data.xml
get-started/data.xml.dvc
github-issues/.gitignore
github-issues/dataset.parquet
github-issues/dataset.parquet.dvc
images/.gitignore
images/dvc-logo-outlines.png
images/dvc-logo-outlines.png.dvc
images/owl_sticker.png
images/owl_sticker.png.dvc
images/owl_sticker.svg
images/owl_sticker.svg.dvc
tutorials/nlp
tutorials/versioning
use-cases/.gitignore
use-cases/cats-dogs
use-cases/cats-dogs.dvc
use-cases/pool_data
use-cases/pool_data.dvc
workshop/.gitignore
workshop/README.md
workshop/dvc_discord_channel.csv
workshop/dvc_discord_channel.csv.dvc
workshop/satellite-data
workshop/satellite-data.dvc

Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 97.86325% with 5 lines in your changes missing coverage. Please review.

Project coverage is 90.75%. Comparing base (3651939) to head (5b360c5).

Files with missing lines Patch % Lines
dvc/commands/ls/__init__.py 95.71% 1 Missing and 2 partials ⚠️
dvc/repo/ls.py 95.91% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10598      +/-   ##
==========================================
+ Coverage   90.71%   90.75%   +0.03%     
==========================================
  Files         504      504              
  Lines       39593    39784     +191     
  Branches     3129     3140      +11     
==========================================
+ Hits        35916    36105     +189     
+ Misses       3030     3021       -9     
- Partials      647      658      +11     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@skshetry skshetry merged commit 746f028 into main Oct 23, 2024
24 checks passed
@skshetry skshetry deleted the ls-tree branch October 23, 2024 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants