-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
29 lines (24 loc) · 831 Bytes
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const alfy = require('alfy')
const open = require('open')
const requirements = [
{
name: 'Developer key',
value: () => alfy.config.get('developerKey'),
url: () => 'https://trello.com/app-key'
},
{
name: 'User permission token',
value: () => alfy.config.get('userPermissionToken'),
url: () => `https://trello.com/1/authorize?expiration=never&scope=read,write,account&response_type=token&name=Write%20That%20Down&key=${alfy.config.get('developerKey')}`
}
]
const userPermissionToken = alfy.config.get('userPermissionToken')
const developerKey = () => alfy.config.get('developerKey')
const boardId = () => alfy.config.get('boardId')
const complete = () => requirements.every(requirement => requirement.value())
module.exports = {
nextSetupRequirement () {
if (!developerKey()) {
}
}
}