mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-20 09:26:42 +00:00
Replace underscore.string usage with lodash
This commit is contained in:
parent
001c8f9601
commit
bd6cb04a2b
@ -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')
|
||||
|
@ -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"
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user