Skip to content

Commit 631055d

Browse files
committed
Change output format of --latest <ver>
1 parent 9104a2d commit 631055d

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Changelog
22

33
## Next
4-
- Changed the CLI output of `pack-format <version>`.
4+
- Changed the CLI output to display both resource and data pack formats on separate lines.
55
- Updated resource and data pack formats to `17`.
66

77
## 1.3.8

src/cli.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ else if (args.list) {
7474
// List the latest pack formats
7575
else if (args.latest) {
7676
const type = args.data ? 'data' : args.resource ? 'resource' : ''
77-
if (type) {
78-
console.log(`The latest ${type} pack format version is ${LATEST[type]}.`)
77+
if (!args.resource) {
78+
console.log(`The latest data pack format version is ${LATEST.data}.`)
7979
}
80-
else {
81-
console.log('The latest pack format versions are', LATEST)
80+
if (!args.data) {
81+
console.log(`The latest resource pack format version is ${LATEST.resource}.`)
8282
}
8383
}
8484
// Print the pack format of a given version

0 commit comments

Comments
 (0)