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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
use clap::Subcommand;
#[derive(Subcommand)]
pub enum Commands {
/// Build A11yWatch Lite on the local machine [defaults to docker runtime]
BUILD {
/// create machine with frontend client
#[clap(short, long)]
frontend: bool,
/// create target local machine non docker if true
#[clap(short, long)]
local: bool,
/// Ugrade docker images for container on start.
#[clap(short, long)]
upgrade: bool,
/// standalone container [defaults to true]
#[clap(short, long)]
standalone: bool,
},
/// Start A11yWatch Lite on the local machine [defaults to docker runtime]
START {
/// start the local machine with frontend client
#[clap(short, long)]
frontend: bool,
/// start the local machine non docker if true
#[clap(short, long)]
local: bool,
/// Ugrade docker images for container on start.
#[clap(short, long)]
upgrade: bool,
/// standalone container [defaults to true]
#[clap(short, long)]
standalone: bool,
/// use the bun runtime - requires local flag as well [BETA].
#[clap(short, long)]
bun: bool,
},
/// Stop A11yWatch Lite on the local machine [defaults to docker runtime]
STOP {
/// stop the local machine with frontend client.
#[clap(short, long)]
frontend: bool,
/// stop the local machine client
#[clap(short, long)]
local: bool,
},
/// Single page scan a website url for issues.
SCAN {
/// target url to scan
#[clap(short, long)]
url: String,
/// whether to use the a11ywatch external api
#[clap(short, long)]
external: bool,
/// save the results of the scan to tmp
#[clap(short, long)]
save: bool,
/// attempt to fix the code being applied with recommendations
#[clap(short, long)]
fix: bool,
#[clap(long)]
/// disable stdout (useful for CI usage and large outputs)
noout: bool,
/// store results as CSV
#[clap(short, long)]
csv: bool,
},
/// Site wide scan a website url for issues.
CRAWL {
/// Target url to scan.
#[clap(short, long)]
url: String,
/// Whether to use the a11ywatch external api.
#[clap(short, long)]
external: bool,
/// Save the results of the scan to tmp folder.
#[clap(short, long)]
save: bool,
/// Include subdomains in crawl.
#[clap(short = 'S', long)]
subdomains: bool,
/// Extend crawl with sitemap list.
#[clap(long)]
sitemap: bool,
/// Include different TLD extensions matching hostname
#[clap(short, long)]
tld: bool,
/// Do not respect the robots.txt file
#[clap(short, long)]
norobo: bool,
/// attempt to fix the code being applied with recommendations
#[clap(short, long)]
fix: bool,
/// enable log output on crawl
#[clap(short, long)]
debug: bool,
#[clap(long)]
/// disable stdout (useful for CI usage and large outputs)
noout: bool,
/// store results as CSV
#[clap(short, long)]
csv: bool,
},
/// Extract results in formats for platforms
EXTRACT {
/// platform to use like github
#[clap(short, long)]
platform: String,
/// pass fail list style
#[clap(short, long)]
list: bool,
},
}