-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathbase64.ts
50 lines (50 loc) · 1.28 KB
/
base64.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
const completionSpec: Fig.Spec = {
name: "base64",
description: "Encode and decode using Base64 representation",
parserDirectives: {
optionsMustPrecedeArguments: true,
},
options: [
{
name: ["--help", "-h"],
description: "Display this help and exit",
},
{
name: ["--break", "-b"],
description:
"Insert line breaks every count characters. Default is 0, which generates an unbroken stream",
args: {
name: "count",
suggestions: ["0"],
default: "0",
},
},
{
name: ["--decode", "-d", "-D"],
description: "Decode incoming Base64 stream into binary data",
},
{
name: ["--input", "-i"],
description:
"Read input from input_file. Default is stdin; passing - also represents stdin",
args: {
name: "input_file",
suggestions: ["stdin", "-"],
default: "stdin",
template: "filepaths",
},
},
{
name: ["--output", "-o"],
description:
"Write output to output_file. Default is stdout; passing - also represents stdout",
args: {
name: "output_file",
suggestions: ["stdout", "-"],
default: "stdout",
template: "filepaths",
},
},
],
};
export default completionSpec;