-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathbasenc.ts
74 lines (74 loc) · 1.93 KB
/
basenc.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
const completionSpec: Fig.Spec = {
name: "basenc",
description: "Encode/decode data and print to standard output",
parserDirectives: {
optionsMustPrecedeArguments: true,
},
options: [
{
name: ["--help", "-h"],
description: "Display this help and exit",
},
{
name: "--base64",
description: "Same as 'base64' program (RFC4648 section 4)",
},
{
name: "--base64url",
description: "File- and url-safe base64 (RFC4648 section 5)",
},
{
name: "--base32",
description: "Same as 'base32' program (RFC4648 section 6)",
},
{
name: "--base32hex",
description: "Extended hex alphabet base32 (RFC4648 section 7)",
},
{
name: "--base16",
description: "Hex encoding (RFC4648 section 8)",
},
{
name: "--base2msbf",
description: "Bit string with most significant bit (msb) first",
},
{
name: "--base2lsbf",
description: "Bit string with least significant bit (lsb) first",
},
{
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: "--z85",
description:
"Ascii85-like encoding (ZeroMQ spec:32/Z85); when encoding, input length must be a multiple of 4; when decoding, input length must be a multiple of 5",
},
{
name: "--version",
description: "Output version information and exit",
},
],
args: {
name: "FILE",
description: "File(s) to encode/decode",
template: "filepaths",
},
};
export default completionSpec;