-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
38 lines (36 loc) · 901 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
30
31
32
33
34
35
36
37
38
'use strict';
const path = require('path');
const xFs = require('xcraft-core-fs');
const xConfig = require('xcraft-core-etc')().load('xcraft');
/**
* Retrieve the inquirer definition for xcraft-core-etc
*/
module.exports = [
{
type: 'checkbox',
name: 'backends',
message: 'enabled backends (empty for all)',
choices: xFs
.ls(path.join(__dirname, 'lib/backends'), /\.js$/)
.map((mod) => mod.replace(/\.js$/, '')),
default: [],
},
{
type: 'confirm',
name: 'requestClientCert',
message: 'request client certificates',
default: false,
},
{
type: 'input',
name: 'certsPath',
message: 'client certificates location',
default: path.join(xConfig.xcraftRoot, 'var/certs'),
},
{
type: 'input',
name: 'keysPath',
message: 'client private keys location',
default: path.join(xConfig.xcraftRoot, 'var/keys'),
},
];