-
Notifications
You must be signed in to change notification settings - Fork 64
/
Copy pathhemmelig.ts
90 lines (90 loc) · 2.6 KB
/
hemmelig.ts
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
const completionSpec: Fig.Spec = {
name: 'hemmelig',
description: 'Encrypt text',
args: [
{
name: 'text',
description: 'Text',
},
],
options: [
{
name: ['-t', '--title'],
description: 'The secret title',
isOptional: true,
args: {
name: 'title',
description: 'The secret title',
},
},
{
name: ['-p', '--password'],
description: 'The password to protect the secret',
isOptional: true,
args: {
name: 'password',
description: 'The password to protect the secret',
},
},
{
name: ['-l', '--lifetime'],
description: 'The lifetime of the secret',
isOptional: true,
args: {
name: 'lifetime',
description: 'The lifetime of the secret',
},
},
{
name: ['-m', '--maxViews'],
description: 'The max views of the secret',
isOptional: true,
args: {
name: 'maxViews',
description: 'The max views of the secret',
},
},
{
name: ['-c', '--cidr'],
description: 'Provide the IP or CIDR range',
isOptional: true,
args: {
name: 'cidr',
description: 'Provide the IP or CIDR range',
},
},
{
name: ['-e', '--expire'],
description: 'Burn the secret only after the expire time',
isOptional: true,
args: {
name: 'expire',
description: 'Burn the secret only after the expire time',
},
},
{
name: ['-u', '--url'],
description: 'If you have your own instance of the Hemmelig.app',
isOptional: true,
args: {
name: 'url',
description: 'If you have your own instance of the Hemmelig.app',
},
},
{
name: ['-o', '--output'],
description: 'Do you want the output response in yaml or json',
isOptional: true,
args: {
name: 'output',
description: 'Do you want the output response in yaml or json',
},
},
{
name: '--help',
description: 'Prints help information',
isOptional: true,
},
],
};
export default completionSpec;