Skip to content

Commit

Permalink
fix table values
Browse files Browse the repository at this point in the history
  • Loading branch information
Gkiokan committed May 7, 2022
1 parent b3ecb44 commit 974848a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hb-store-cdn-cli-server",
"version": "1.1.0",
"version": "1.2.0",
"description": "HB-Store CDN Server CLI Edition",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
Expand Down
8 changes: 6 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ export default {
let table = helper.getTable(['Key', 'Value'])

for (const [key, value] of Object.entries(config)) {
table.push([key, value])
table.push([key + " ", value + " "])
}

console.log(table.toString())
Expand All @@ -273,7 +273,11 @@ export default {
let table = helper.getTable([ 'id', 'name', 'version', 'size' ])

files.map( file => {
table.push([file.id, file.name, file.version, file.Size ])
let id = file.id ? file.id + " " : '-'
let name = file.name ? file.name + " " : '-'
let version = file.version ? file.version + " " : '-'
let size = file.Size ? file.Size + " " : '-'
table.push([id, name, version, size ])
})

try {
Expand Down

0 comments on commit 974848a

Please sign in to comment.