mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-01-06 22:08:42 +00:00
9 lines
182 B
CoffeeScript
9 lines
182 B
CoffeeScript
_ = require('lodash')
|
|
resin = require('../resin')
|
|
|
|
exports.use = (plugin) ->
|
|
if not _.isFunction(plugin)
|
|
throw new Error('Plugin should be a function')
|
|
|
|
plugin.call(null, resin)
|