Repository navigation
Expand file tree
/
Copy pathhelp.js
More file actions
75 lines (73 loc) · 2.17 KB
/
Copy pathhelp.js
File metadata and controls
75 lines (73 loc) · 2.17 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
module.exports = function () {
"use strict";
const getUsage = require('command-line-usage');
const sections = [
{
header: 'MasterKey',
content: 'Secure your secrets in [italic]{Microsoft Azure KeyVault}.'
}, {
header: 'Options',
optionList: [
{
name: 'list, -l',
description: 'List all secrets'
},
{
name: 'set, -s',
description: 'Add or update the key/value pair in Azure KeyVault.'
},
{
name: 'get, -g',
description: 'Get the value based on key from Azure KeyVault.'
},
{
name: 'delete, -d',
description: 'Delete the key/value pair from Azure KeyVault.'
},
{
name: 'desc',
description: 'A description that will be saved in the KeyVault along with the key.'
},
{
name: 'help, -h',
description: 'Print this usage guide.'
},
{
name: 'key, -k',
description: 'Name of the key in Key Vault'
},
{
name: 'value, -v',
description: 'The secret value stored in Key Vault'
},
{
name: 'notbefore',
description: 'The value will not be active before a specific time'
},
{
name: 'expire',
description: 'The value after which the key will expire'
},
{
name: 'enabled',
description: 'Set the Key as enabled or disabled'
},
{
name: 'transform, -t',
description: 'Replace all secret URLs with actual secrets in the transformed file.' +
'Provide a name of the template (ex: dev.template.json , prod.template.config, etc.) that has to be ' +
'transformed. Each key that needs to be transformed must have a fixed prefix of "masterkey_" ' +
'(ex. masterkey_db_connection, masterkey_aws_secret, and so on.'
},
{
name: 'app, -a',
description: 'Provide an application name for which you want to manage information.'
},
]
}
];
const usage = getUsage(sections);
return {
usage: usage
}
}();