Completed
Push — master ( 78b7d3...971ae6 )
by Thomas
49s queued 29s
created

lib/commands/index.js   A

Complexity

Total Complexity 8
Complexity/F 1

Size

Lines of Code 28
Function Count 8

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 0
wmc 8
c 1
b 0
f 0
nc 1
mnd 0
bc 8
fnc 8
dl 0
loc 28
rs 10
bpm 1
cpm 1
noi 0

8 Functions

Rating   Name   Duplication   Size   Complexity  
A module.exports.downloadHelper 0 3 1
A module.exports.plugins.remove 0 3 1
A module.exports.plugins.install 0 3 1
A module.exports.plugins.list 0 3 1
A module.exports.reset 0 3 1
A module.exports.create 0 3 1
A module.exports.run 0 3 1
A module.exports.upgrade 0 3 1
1
/*
2
 * Copyright (c) 2018 Includable.
3
 * Created by Thomas Schoffelen.
4
 */
5
6
module.exports = {
7
  create: function (kit, slug) {
8
    require('./create')(kit, slug)
9
  },
10
  run: function (containerToken, envr, silent) {
11
    require('./run')(containerToken, envr, silent)
12
  },
13
  reset: function () {
14
    require('./reset')()
15
  },
16
  downloadHelper: function () {
17
    require('./helper')()
18
  },
19
  upgrade: function () {
20
    require('./upgrade')()
21
  },
22
  plugins: {
23
    install: function (plugin) {
24
      require('./plugins/install')(plugin)
25
    },
26
    remove: function (plugin) {
27
      require('./plugins/remove')(plugin)
28
    },
29
    list: function () {
30
      require('./plugins/list')()
31
    }
32
  }
33
}
34