-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathprogressline.ts
49 lines (48 loc) · 1.15 KB
/
progressline.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
const completionSpec: Fig.Spec = {
name: "progressline",
description: "⏳Track commands progress in a compact one-line format",
options: [
{
name: ["--help", "-h"],
description: "Show help for progressline",
},
{
name: ["--log-all", "-a"],
description: "Log all lines above the progress line",
},
{
name: ["--static-text", "-t"],
description:
"Set static text to display instead of the latest stdin data",
args: {
name: "text",
},
},
{
name: ["--activity-style", "-s"],
args: {
name: "style",
default: "dots",
suggestions: ["dots", "kitt", "snake"],
},
description: "Set style of the activity indicator",
},
{
name: ["--original-log-path", "-l"],
description: "Save the original log to a file",
args: {
name: "path",
template: "filepaths",
},
},
{
name: ["--log-matches", "-m"],
description:
"Log above progress line lines matching the given regular expressions",
args: {
name: "regex",
},
},
],
};
export default completionSpec;