-
Notifications
You must be signed in to change notification settings - Fork 5
/
web2image.yaml
44 lines (34 loc) · 1002 Bytes
/
web2image.yaml
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
# program name, name for the executable
ProgramName: web2image
PackageName: main
Name: web2image
Desc: "Web to image"
Text: Tool to take screenshot from a web page
Global: true
NumOption: cli.AtLeast(1)
# Handle the rest of CLI args ourselves
CanSubRoute: true
NumArg: cli.AtLeast(2)
UsageLead: "Usage:\\n web2image OPTIONS... URL IMAGE-FILE"
Options:
- Name: Headless
Type: bool
Flag: 'd,headless'
Usage: use chrome-headless docker as client instead of chrome
- Name: CSS
Type: string
Flag: '*c,css'
Usage: the CSS selector for the region to take the screenshot of
- Name: Sleep
Type: string
Flag: s,sleep
Usage: 'time to sleep before waiting for above CSS (default: 3 seconds)'
Value: 3s
- Name: WaitFor
Type: string
Flag: w,wait-for
Usage: the CSS selector to wait for before taking the screenshot
- Name: Verbose
Type: cli.Counter
Flag: v,verbose
Usage: verbose mode (multiple -v options increase the verbosity.)