Skip to content

Commit 7ae0425

Browse files
feat(download): add --filename and --download-all options (#270)
* feat(download): add --filename and --download-all options * fix: address PR review comments * refactor: restructure download command into 4-step architecture, fix SKIPPED status, and extract shared helpers * replace the the pretty_print_table call with rich.table.Table * replace the the pretty_print_table call with rich.table.Table in testcases * change release date
1 parent 2a47c30 commit 7ae0425

File tree

6 files changed

+938
-271
lines changed

6 files changed

+938
-271
lines changed

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,34 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8+
89
## [Unreleased]
10+
11+
12+
## [1.15.0] - 2026-03-18
13+
14+
### Added
15+
916
- Added `--tag` option to `download` command for filtering packages by tags
1017
- Added download command documentation to README with comprehensive usage examples
18+
- Added `--filename` option to `download` command for filtering by package filename, with support for glob patterns (e.g., `--filename '*.snupkg'`)
19+
- Added `--download-all` flag to `download` command to download all matching packages instead of erroring on multiple matches
20+
- Multiple packages table now includes a Filename column for easier disambiguation
21+
22+
## [1.14.0] - 2026-03-11
23+
24+
### Added
25+
26+
- Added `vulnerabilities` command to retrieve security scan results for a package
27+
- Summary View (Default): Displays a high-level count of vulnerabilities broken down by severity (Critical, High, Medium, Low, Unknown).
28+
- Assessment View `--show-assessment` (`-A`): Provides a detailed breakdown where vulnerabilities are:
29+
- Grouped by the specific affected upstream package / dependency.
30+
- Sorted by severity (Critical first).
31+
- Richly formatted tables.
32+
- Filtering Capabilities:
33+
- By Severity: `--severity` Show only specific levels (e.g., just Critical and High).
34+
- By Status: `--fixable | --non-fixable` Filter to show only "Fixable" vulnerabilities (where a patch exists) or "Non-Fixable" ones.
35+
- Supports `--output-format json | pretty_json` for programmatic usage
1136

1237
## [1.14.0] - 2026-03-13
1338

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,16 @@ cloudsmith download your-account/your-repo package-name --tag latest
277277
# Combine tag with metadata filters
278278
cloudsmith download your-account/your-repo package-name --tag stable --format deb --arch arm64
279279
280+
# Filter by filename (exact or glob pattern)
281+
cloudsmith download your-account/your-repo package-name --filename '*.nupkg'
282+
cloudsmith download your-account/your-repo package-name --filename 'mypackage-1.0.0.snupkg'
283+
284+
# Download all matching packages (when multiple packages share the same name/version)
285+
cloudsmith download your-account/your-repo package-name --download-all
286+
287+
# Combine --download-all with --filename to download a subset
288+
cloudsmith download your-account/your-repo package-name --download-all --filename '*.snupkg'
289+
280290
# Download all associated files (POM, sources, javadoc, etc.)
281291
cloudsmith download your-account/your-repo package-name --all-files
282292

0 commit comments

Comments
 (0)