-
Notifications
You must be signed in to change notification settings - Fork 1
/
run.ts
45 lines (44 loc) · 1.21 KB
/
run.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
import { handler } from "./src";
import prompts from "prompts";
(async () => {
const { args } = await prompts({
type: "select",
name: "args",
message: "",
choices: [
{
title: "getGridSearchSummary",
value: {
apiUrl:
"https://api.media.test.dev-gutools.co.uk/images?q=flag%20%20~%22australia%22%20%23xyz%20country:%22United%20Kingdom%22&length=1&orderBy=-uploadTime",
},
selected: true,
},
{
title: "asGridPayload (grid-search)",
value: {
gridUrl:
"https://media.test.dev-gutools.co.uk/search?query=test&nonFree=true",
},
},
{
title: "asGridPayload (grid-original)",
value: {
gridUrl:
"https://media.test.dev-gutools.co.uk/images/65c8e0cb691ccedb73f30822d2e9c9999d3a0e87",
},
},
{
title: "asGridPayload (grid-crop)",
value: {
gridUrl:
"https://media.test.dev-gutools.co.uk/images/65c8e0cb691ccedb73f30822d2e9c9999d3a0e87?crop=0_0_20772_12500",
},
},
],
});
handler({ arguments: args })
.then(JSON.stringify)
.then(console.dir)
.catch(console.error);
})();