-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathbase32.ts
41 lines (41 loc) · 1.01 KB
/
base32.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
const completionSpec: Fig.Spec = {
name: "base32",
description: "Base32 encode/decode data and print to standard output",
parserDirectives: {
optionsMustPrecedeArguments: true,
},
options: [
{
name: ["--help", "-h"],
description: "Display this help and exit",
},
{
name: ["--decode", "-d"],
description: "Decode data",
},
{
name: ["--ignore-garbage", "-i"],
description: "When decoding, ignore non-alphabet characters",
},
{
name: ["--wrap", "-w"],
description:
"Wrap encoded lines after COLS character (default 76). Use 0 to disable line wrapping",
args: {
name: "COLS",
suggestions: ["76", "78", "80", "100", "120", "160", "0"],
default: "76",
},
},
{
name: "--version",
description: "Output version information and exit",
},
],
args: {
name: "FILE",
description: "File to base32 encode/decode",
template: "filepaths",
},
};
export default completionSpec;