Skip to content

Commit

Permalink
fix file display
Browse files Browse the repository at this point in the history
  • Loading branch information
joehand committed Apr 6, 2017
1 parent 4fba82c commit 8d05064
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ var minimist = require('minimist')
var pretty = require('prettier-bytes')
var speed = require('speedometer')
var progress = require('progress-string')
var cliTruncate = require('cli-truncate')
var neatLog = require('neat-log')
var output = require('neat-log/output')

Expand Down Expand Up @@ -219,9 +220,10 @@ function importUI (state) {
}
})
}
var name = state.fileImport.dst.name
return output`
ADD: ${state.fileImport.src.name}
ADD: ${cliTruncate(name, process.stdout.columns - 5, {position: 'start'})}
${state.fileImport.bar(state.fileImport.progress)}
`
}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
},
"homepage": "https://github.com/joehand/dat-next#readme",
"dependencies": {
"cli-truncate": "^1.0.0",
"count-files": "^2.4.0",
"dat-encoding": "^4.0.2",
"dat-ignore": "^1.0.0",
Expand Down

0 comments on commit 8d05064

Please sign in to comment.