-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
/
Copy pathhttpy.ts
54 lines (54 loc) · 1.29 KB
/
httpy.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
const completionSpec: Fig.Spec = {
name: "httpy",
description: "Programmable command-line HTTP client for the API",
args: [
{
name: "URL",
description:
"The scheme defaults to 'http://' if the URL does not include one",
},
{
name: "METHOD",
isOptional: true,
suggestions: ["GET", "POST", "PUT", "DELETE"],
default: "GET",
description:
"The HTTP method to be used for the request (GET, POST, PUT, DELETE, ...)",
},
],
options: [
{
name: ["--exec", "-x"],
description: "Execute httpy command",
},
{
name: ["--status", "-S"],
description: "Print only the response status",
},
{
name: ["--header", "-H"],
description: "Print only the response headers",
},
{
name: ["--body", "-B"],
description: "Print only the response body",
},
{
name: ["--allow-redirect", "-r"],
description: "Allow requests to be redirected",
},
{
name: ["--verbose", "-V"],
description: "Show request and response in verbose",
},
{
name: ["--help", "-h"],
description: "Show help for httpy",
},
{
name: ["--version", "-v"],
description: "Show version for httpy",
},
],
};
export default completionSpec;