File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44- Added basic message when no arguments are given.
55- Changed output of ` getVersions ` to replace '` .x ` ' with the actual game version.
66- Changed CLI output of ` --list ` to present the versions in prose instead of JSON.
7+ - Changed help message.
78
89## 1.3.16
910- Updated resource pack format to ` 36 ` .
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ const VERSION = require('../package.json').version
44
55const indent = ( n : number ) : string => ' ' . repeat ( n * 4 )
66const log = function ( arg : string , desc : string [ ] , example : string ) : void {
7- console . log ( `\n${ indent ( 2 ) } pack-format ${ arg } ` )
7+ console . log ( `\n${ indent ( 1 ) } pack-format ${ arg } ` )
88 for ( let i in desc )
9- console . log ( indent ( 3 ) + desc [ i ] )
9+ console . log ( indent ( 2 ) + desc [ i ] )
1010 console . log ( `${ indent ( 3 ) } Example: ${ example } ` )
1111}
1212
@@ -24,20 +24,19 @@ const ver = args._[0]
2424
2525// Print the help message
2626if ( args . help ) {
27- console . log ( `\n${ indent ( 1 ) } pack-format arguments:` )
2827 log (
2928 '<version>' ,
3029 [ 'Retrieve the resource and data pack formats of any Minecraft version.' ] ,
3130 'pack-format 1.16' ,
3231 )
3332 log (
3433 '(--data|-d) <version>' ,
35- [ 'Retrieve the data pack format in particular when applicable .' ] ,
34+ [ 'Retrieve the data pack format only of the version .' ] ,
3635 'pack-format --data 20w45a' ,
3736 )
3837 log (
3938 '(--resource|-r) <version>' ,
40- [ 'Retrieve the resource pack format in particular when applicable .' ] ,
39+ [ 'Retrieve the resource pack format only of the version .' ] ,
4140 'pack-format --resource 20w45a' ,
4241 )
4342 log (
You can’t perform that action at this time.
0 commit comments