lib/commands/index.js   A
last analyzed

Complexity

Total Complexity 12
Complexity/F 1

Size

Lines of Code 44
Function Count 12

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

12 Functions

Rating   Name   Duplication   Size   Complexity  
A module.exports.downloadHelper 0 3 1
A module.exports.reset 0 3 1
A module.exports.create 0 3 1
A module.exports.upgrade 0 3 1
A module.exports.plugins.remove 0 3 1
A module.exports.modules.list 0 3 1
A module.exports.plugins.install 0 3 1
A module.exports.communities.list 0 3 1
A module.exports.modules.publish 0 3 1
A module.exports.plugins.list 0 3 1
A module.exports.login 0 3 1
A module.exports.run 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 (options) {
11
    require('./run')(options)
12
  },
13
  reset: function () {
14
    require('./reset')()
15
  },
16
  downloadHelper: function () {
17
    require('./helper')()
18
  },
19
  upgrade: function () {
20
    require('./upgrade')()
21
  },
22
  login: function (options) {
23
    require('./login')(options)
24
  },
25
  plugins: {
26
    install: function (plugin) {
27
      require('./plugins/install')(plugin)
28
    },
29
    remove: function (plugin) {
30
      require('./plugins/remove')(plugin)
31
    },
32
    list: function () {
33
      require('./plugins/list')()
34
    }
35
  },
36
  communities: {
37
    list: function () {
38
      require('./communities/list')()
39
    }
40
  },
41
  modules: {
42
    publish: function () {
43
      require('./modules/publish')()
44
    },
45
    list: function () {
46
      require('./modules/list')()
47
    }
48
  }
49
}
50