Replace underscore.string usage with lodash

This commit is contained in:
Tim Perry 2017-11-23 14:02:47 +01:00
parent 001c8f9601
commit bd6cb04a2b
2 changed files with 2 additions and 4 deletions

View File

@ -15,7 +15,6 @@ limitations under the License.
###
_ = require('lodash')
_.str = require('underscore.string')
capitano = require('capitano')
columnify = require('columnify')
messages = require('../utils/messages')
@ -36,7 +35,7 @@ parse = (object) ->
]
indent = (text) ->
text = _.map _.str.lines(text), (line) ->
text = _.map text.split('\n'), (line) ->
return ' ' + line
return text.join('\n')
@ -92,7 +91,7 @@ command = (params, options, done) ->
if command.help?
console.log("\n#{command.help}")
else if command.description?
console.log("\n#{_.str.humanize(command.description)}")
console.log("\n#{_.capitalize(command.description)}")
if not _.isEmpty(command.options)
console.log('\nOptions:\n')

View File

@ -113,7 +113,6 @@
"stream-to-promise": "^2.2.0",
"tmp": "0.0.31",
"umount": "^1.1.6",
"underscore.string": "^3.2.2",
"unzip2": "^0.2.5",
"update-notifier": "^2.2.0"
},