-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcli.rs
More file actions
198 lines (167 loc) · 4.53 KB
/
cli.rs
File metadata and controls
198 lines (167 loc) · 4.53 KB
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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
use clap::{Parser, Subcommand};
use crate::commands::*;
#[derive(Debug, Parser)]
#[command(
name = "openapi",
about = "CLI client for Openapi.com APIs",
version,
propagate_version = true
)]
pub struct Cli {
/// Execute in the sandbox environment
#[arg(short = 'S', long, global = true)]
pub sandbox: bool,
/// Discover who you are
#[arg(long, global = true)]
pub who: bool,
#[command(subcommand)]
pub command: Option<Commands>,
}
#[derive(Debug, Subcommand)]
pub enum Commands {
/// OAuth token management
#[command(name = "oauth")]
Token {
#[command(subcommand)]
command: token::TokenCommands,
},
/// OAuth v2 token management and analytics
#[command(name = "oauthv2")]
Oauthv2 {
#[command(subcommand)]
command: oauthv2::Oauthv2Commands,
},
/// Electronic signature
Esignature {
#[command(subcommand)]
command: esignature::EsignatureCommands,
},
/// AI language models
Ai {
#[command(subcommand)]
command: ai::AiCommands,
},
/// SMS messaging (v2)
#[command(name = "smsv2")]
Sms {
#[command(subcommand)]
command: sms::SmsCommands,
},
/// Trust verification services
Trust {
#[command(subcommand)]
command: trust::TrustCommands,
},
/// Foreign currency exchange rates
#[command(name = "exchange")]
ExchangeRate {
#[command(subcommand)]
command: exchange_rate::ExchangeRateCommands,
},
/// Risk reports and scoring
Risk {
#[command(subcommand)]
command: risk::RiskCommands,
},
/// Automotive data (vehicles, insurance)
Automotive {
#[command(subcommand)]
command: automotive::AutomotiveCommands,
},
/// SDI electronic invoicing
Sdi {
#[command(subcommand)]
command: sdi::SdiCommands,
},
/// Document time stamping
#[command(name = "marchetemporali")]
TimeStamping {
#[command(subcommand)]
command: time_stamping::TimeStampingCommands,
},
/// Real estate valuation data
#[command(name = "realestate")]
RealEstate {
#[command(subcommand)]
command: real_estate::RealEstateCommands,
},
/// Italian cadastral data
#[command(name = "catasto")]
Cadastre {
#[command(subcommand)]
command: cadastre::CadastreCommands,
},
/// Italian certified email (PEC / Legalmail)
#[command(name = "pec")]
CertifiedEmail {
#[command(subcommand)]
command: certified_email::CertifiedEmailCommands,
},
/// .it domain management
Domains {
#[command(subcommand)]
command: domains::DomainsCommands,
},
/// Geocoding and reverse geocoding
Geocoding {
#[command(subcommand)]
command: geocoding::GeocodingCommands,
},
/// Electronic invoicing
Invoice {
#[command(subcommand)]
command: invoice::InvoiceCommands,
},
/// Massive Registered Electronic Mail
#[command(name = "pecmassiva")]
MassiveRem {
#[command(subcommand)]
command: massive_rem::MassiveRemCommands,
},
/// Bills payment
#[command(name = "bollettini")]
PayingBills {
#[command(subcommand)]
command: paying_bills::PayingBillsCommands,
},
/// HTML to PDF conversion
Pdf {
#[command(subcommand)]
command: pdf::PdfCommands,
},
/// Postal mail service
#[command(name = "ufficiopostale")]
PostalService {
#[command(subcommand)]
command: postal_service::PostalServiceCommands,
},
/// Official documents (Chamber of Commerce, INPS, Tax Agency)
Visengine {
#[command(subcommand)]
command: visengine::VisengineCommands,
},
/// Zip codes, municipalities, provinces, regions
#[command(name = "cap")]
ZipCodes {
#[command(subcommand)]
command: zip_codes::ZipCodesCommands,
},
/// Company data and information
Company {
#[command(subcommand)]
command: company::CompanyCommands,
},
/// Chamber of Commerce documents
#[command(name = "visurecamerali")]
ChamberOfCommerce {
#[command(subcommand)]
command: chamber_of_commerce::ChamberOfCommerceCommands,
},
/// Official documents (Business Register, Revenue Agency, INPS)
Docuengine {
#[command(subcommand)]
command: docuengine::DocuengineCommands,
},
/// Show configuration status and readiness
Info,
}