Completed
Push — master ( 7dd2d9...fd97ea )
by Thomas
49s queued 27s
created

lib/commands/modules/list.js   A

Complexity

Total Complexity 3
Complexity/F 1

Size

Lines of Code 12
Function Count 3

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

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

1 Function

Rating   Name   Duplication   Size   Complexity  
A module.exports 0 9 1
1
/*
2
 * Copyright (c) 2018 Includable.
3
 * Created by Thomas Schoffelen.
4
 */
5
6
const API = require('../../util/API')
7
const output = require('../../output')
8
9
module.exports = function () {
10
  API.checkSignedIn()
11
12
  API.get('/modules').then(function (response) {
13
    response.data.data.map(function (modules) {
14
      output.log(modules.name)
15
    })
16
  })
17
}
18