You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 11, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: bin/client/opts.rs
+45-45Lines changed: 45 additions & 45 deletions
Original file line number
Diff line number
Diff line change
@@ -15,36 +15,36 @@ pub struct Opts {
15
15
short = 's',
16
16
long = "server",
17
17
env = "BINDLE_URL",
18
-
about = "The address of the bindle server. For the default local server, this should be http://localhost:8080/v1"
18
+
help = "The address of the bindle server. For the default local server, this should be http://localhost:8080/v1"
19
19
)]
20
20
pubserver_url:String,
21
21
#[clap(
22
22
short = 'd',
23
23
long = "bindle-dir",
24
24
env = "BINDLE_DIRECTORY",
25
-
about = "The directory where bindles are stored/cached, defaults to $XDG_CACHE_HOME"
25
+
help = "The directory where bindles are stored/cached, defaults to $XDG_CACHE_HOME"
26
26
)]
27
27
pubbindle_dir:Option<PathBuf>,
28
28
29
29
#[clap(
30
30
short = 'r',
31
31
long = "keyring",
32
32
env = "BINDLE_KEYRING",
33
-
about = "The path to the keyring file. Defaults to $XDG_CONFIG/bindle/keyring.toml"
33
+
help = "The path to the keyring file. Defaults to $XDG_CONFIG/bindle/keyring.toml"
34
34
)]
35
35
pubkeyring:Option<PathBuf>,
36
36
37
37
#[clap(
38
38
short = 't',
39
39
long = "token-file",
40
40
env = "BINDLE_TOKEN_FILE",
41
-
about = "The path to the login token file. If running `bindle login` this is where the file will be saved to. Defaults to $XDG_CONFIG/bindle/.token"
41
+
help = "The path to the login token file. If running `bindle login` this is where the file will be saved to. Defaults to $XDG_CONFIG/bindle/.token"
42
42
)]
43
43
pubtoken_file:Option<PathBuf>,
44
44
45
45
#[clap(
46
46
long = "http-user",
47
-
about = "Username for HTTP Basic auth",
47
+
help = "Username for HTTP Basic auth",
48
48
requires = "http-password",
49
49
env = "BINDLE_HTTP_PASSWORD",
50
50
hide_env_values = true
@@ -53,7 +53,7 @@ pub struct Opts {
53
53
54
54
#[clap(
55
55
long = "http-password",
56
-
about = "Password for HTTP Basic auth",
56
+
help = "Password for HTTP Basic auth",
57
57
requires = "http-user",
58
58
env = "BINDLE_HTTP_USER"
59
59
)]
@@ -62,7 +62,7 @@ pub struct Opts {
62
62
#[clap(
63
63
short = 'k',
64
64
long = "insecure",
65
-
about = "If set, ignore server certificate errors",
65
+
help = "If set, ignore server certificate errors",
66
66
takes_value = false
67
67
)]
68
68
pubinsecure:bool,
@@ -135,19 +135,19 @@ pub struct Info {
135
135
#[clap(
136
136
index = 1,
137
137
value_name = "BINDLE",
138
-
about = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
138
+
help = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
139
139
)]
140
140
pubbindle_id:String,
141
141
#[clap(
142
142
short = 'y',
143
143
long = "yanked",
144
-
about = "Whether or not to fetch a yanked bindle. If you attempt to fetch a yanked bindle without this set, it will error"
144
+
help = "Whether or not to fetch a yanked bindle. If you attempt to fetch a yanked bindle without this set, it will error"
145
145
)]
146
146
pubyanked:bool,
147
147
#[clap(
148
148
short = 'f',
149
149
long = "output-format",
150
-
about = "choose an output format",
150
+
help = "choose an output format",
151
151
possible_values = &["json","toml"],
152
152
)]
153
153
puboutput:Option<String>,
@@ -158,14 +158,14 @@ pub struct Push {
158
158
#[clap(
159
159
index = 1,
160
160
value_name = "BINDLE",
161
-
about = "The name of the bindle, e.g. foo/bar/baz/1.2.3"
161
+
help = "The name of the bindle, e.g. foo/bar/baz/1.2.3"
162
162
)]
163
163
pubbindle_id:String,
164
164
#[clap(
165
165
short = 'p',
166
166
long = "path",
167
167
default_value = "./",
168
-
about = "A path where the standalone bindle directory is located"
168
+
help = "A path where the standalone bindle directory is located"
169
169
)]
170
170
pubpath:PathBuf,
171
171
}
@@ -175,19 +175,19 @@ pub struct Get {
175
175
#[clap(
176
176
index = 1,
177
177
value_name = "BINDLE",
178
-
about = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
178
+
help = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
179
179
)]
180
180
pubbindle_id:String,
181
181
#[clap(
182
182
short = 'y',
183
183
long = "yanked",
184
-
about = "Whether or not to fetch a yanked bindle. If you attempt to fetch a yanked bindle without this set, it will error"
184
+
help = "Whether or not to fetch a yanked bindle. If you attempt to fetch a yanked bindle without this set, it will error"
185
185
)]
186
186
pubyanked:bool,
187
187
#[clap(
188
188
short = 'e',
189
189
long = "export",
190
-
about = "If specified, export the bindle as a standlone bindle in the given directory"
190
+
help = "If specified, export the bindle as a standlone bindle in the given directory"
191
191
)]
192
192
pubexport:Option<PathBuf>,
193
193
}
@@ -197,7 +197,7 @@ pub struct Yank {
197
197
#[clap(
198
198
index = 1,
199
199
value_name = "BINDLE",
200
-
about = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
200
+
help = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
201
201
)]
202
202
pubbindle_id:String,
203
203
}
@@ -220,33 +220,33 @@ pub struct Search {
220
220
#[clap(
221
221
short = 'q',
222
222
long = "query",
223
-
about = "Filter bindles by this query. Typically, the query is a bindle name or part of a name"
223
+
help = "Filter bindles by this query. Typically, the query is a bindle name or part of a name"
224
224
)]
225
225
pubquery:Option<String>,
226
-
#[clap(short = 'b', long = "bindle-version",about = "version constraint of the bindle to search for",long_about = VERSION_QUERY)]
226
+
#[clap(short = 'b', long = "bindle-version",help = "version constraint of the bindle to search for",long_help = VERSION_QUERY)]
227
227
pubversion:Option<String>,
228
228
#[clap(
229
229
long = "offset",
230
-
about = "The offset where to start the next page of results"
230
+
help = "The offset where to start the next page of results"
231
231
)]
232
232
puboffset:Option<u64>,
233
-
#[clap(long = "limit",about = "the limit of results per page")]
233
+
#[clap(long = "limit",help = "the limit of results per page")]
234
234
publimit:Option<u8>,
235
235
#[clap(
236
236
long = "strict",
237
-
about = "Whether or not to use strict mode",
238
-
long_about = "Whether or not to use strict mode. Please note that bindle servers must implement a strict mode per the specification, a non-strict (standard) mode is optional"
237
+
help = "Whether or not to use strict mode",
238
+
long_help = "Whether or not to use strict mode. Please note that bindle servers must implement a strict mode per the specification, a non-strict (standard) mode is optional"
239
239
)]
240
240
pubstrict:Option<bool>,
241
241
#[clap(
242
242
long = "yanked",
243
-
about = "Whether or not to include yanked bindles in the search result"
243
+
help = "Whether or not to include yanked bindles in the search result"
244
244
)]
245
245
pubyanked:Option<bool>,
246
246
#[clap(
247
247
short = 'f',
248
248
long = "output-format",
249
-
about = "choose an output format",
249
+
help = "choose an output format",
250
250
possible_values = &["json","toml","table"],
251
251
)]
252
252
puboutput:Option<String>,
@@ -270,20 +270,20 @@ pub struct GetParcel {
270
270
#[clap(
271
271
index = 1,
272
272
value_name = "BINDLE_ID",
273
-
about = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
273
+
help = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
274
274
)]
275
275
pubbindle_id: bindle::Id,
276
276
#[clap(
277
277
index = 2,
278
278
value_name = "PARCEL_SHA",
279
-
about = "The SHA256 of the parcel"
279
+
help = "The SHA256 of the parcel"
280
280
)]
281
281
pubsha:String,
282
282
#[clap(
283
283
short = 'o',
284
284
long = "output",
285
285
default_value = "./parcel.dat",
286
-
about = "The location where to output the parcel to"
286
+
help = "The location where to output the parcel to"
287
287
)]
288
288
puboutput:PathBuf,
289
289
}
@@ -293,20 +293,20 @@ pub struct GetInvoice {
293
293
#[clap(
294
294
index = 1,
295
295
value_name = "BINDLE",
296
-
about = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
296
+
help = "The name of the bindle, e.g. example.com/mybindle/1.2.3"
297
297
)]
298
298
pubbindle_id:String,
299
299
#[clap(
300
300
short = 'o',
301
301
long = "output",
302
302
default_value = "./invoice.toml",
303
-
about = "The location where to output the invoice to"
303
+
help = "The location where to output the invoice to"
304
304
)]
305
305
puboutput:PathBuf,
306
306
#[clap(
307
307
short = 'y',
308
308
long = "yanked",
309
-
about = "Whether or not to fetch a yanked bindle. If you attempt to fetch a yanked bindle without this set, it will error"
309
+
help = "Whether or not to fetch a yanked bindle. If you attempt to fetch a yanked bindle without this set, it will error"
310
310
)]
311
311
pubyanked:bool,
312
312
}
@@ -316,19 +316,19 @@ pub struct GenerateLabel {
316
316
#[clap(
317
317
index = 1,
318
318
value_name = "FILE",
319
-
about = "The path to a file. This will generate a label for the file at that path"
319
+
help = "The path to a file. This will generate a label for the file at that path"
320
320
)]
321
321
pubpath:PathBuf,
322
322
#[clap(
323
323
short = 'n',
324
324
long = "name",
325
-
about = "The name of the parcel, defaults to the name + extension of the file"
325
+
help = "The name of the parcel, defaults to the name + extension of the file"
326
326
)]
327
327
pubname:Option<String>,
328
328
#[clap(
329
329
short = 'm',
330
330
long = "media-type",
331
-
about = "The media (mime) type of the file. If not provided, the tool will attempt to guess the mime type. If guessing fails, the default is `application/octet-stream`"
331
+
help = "The media (mime) type of the file. If not provided, the tool will attempt to guess the mime type. If guessing fails, the default is `application/octet-stream`"
332
332
)]
333
333
pubmedia_type:Option<String>,
334
334
}
@@ -338,13 +338,13 @@ pub struct CreateKey {
338
338
#[clap(
339
339
index = 1,
340
340
value_name = "LABEL",
341
-
about = "The name of the key, such as 'Matt <me@example.com>'"
341
+
help = "The name of the key, such as 'Matt <me@example.com>'"
342
342
)]
343
343
publabel:String,
344
344
#[clap(
345
345
short = 'f',
346
346
long = "secrets-file",
347
-
about = "The path to the file where secrets should be stored. If it does not exist, it will be created. If it does exist, the key will be appended."
347
+
help = "The path to the file where secrets should be stored. If it does not exist, it will be created. If it does exist, the key will be appended."
348
348
)]
349
349
pubsecret_file:Option<PathBuf>,
350
350
}
@@ -355,14 +355,14 @@ pub struct PrintKey {
355
355
short = 'f',
356
356
long = "secrets-file",
357
357
value_name = "KEYFILE_PATH",
358
-
about = "The path to the private key file. If not set, the default location will be checked."
358
+
help = "The path to the private key file. If not set, the default location will be checked."
359
359
)]
360
360
pubsecret_file:Option<PathBuf>,
361
361
#[clap(
362
362
short = 'l',
363
363
long = "label",
364
364
value_name = "LABEL",
365
-
about = "The label to search for. If supplied, this will return each key that contains this string in its label. For example, '--label=ample' will match 'label: Examples'."
365
+
help = "The label to search for. If supplied, this will return each key that contains this string in its label. For example, '--label=ample' will match 'label: Examples'."
366
366
)]
367
367
publabel:Option<String>,
368
368
}
@@ -372,25 +372,25 @@ pub struct SignInvoice {
372
372
#[clap(
373
373
index = 1,
374
374
value_name = "INVOICE",
375
-
about = "the path to the invoice to sign"
375
+
help = "the path to the invoice to sign"
376
376
)]
377
377
pubinvoice:String,
378
378
#[clap(
379
379
short = 'f',
380
380
long = "secrets-file",
381
-
about = "the path to the file where secret keys are stored. Use 'create-key' to create a new key"
381
+
help = "the path to the file where secret keys are stored. Use 'create-key' to create a new key"
382
382
)]
383
383
pubsecret_file:Option<PathBuf>,
384
384
#[clap(
385
385
short = 'r',
386
386
long = "role",
387
-
about = "the role to sign with. Values are: c[reator], a[pprover], h[ost], p[roxy]. If no role is specified, 'creator' is used"
387
+
help = "the role to sign with. Values are: c[reator], a[pprover], h[ost], p[roxy]. If no role is specified, 'creator' is used"
388
388
)]
389
389
pubrole:Option<String>,
390
390
#[clap(
391
391
short = 'o',
392
392
long = "out",
393
-
about = "the location to write the modified invoice. By default, it will write to invoice-HASH.toml, where HASH is computed on name and version"
393
+
help = "the location to write the modified invoice. By default, it will write to invoice-HASH.toml, where HASH is computed on name and version"
394
394
)]
395
395
pubdestination:Option<String>,
396
396
}
@@ -401,7 +401,7 @@ pub struct PushInvoice {
401
401
index = 1,
402
402
value_name = "FILE",
403
403
default_value = "./invoice.toml",
404
-
about = "The path to the invoice TOML file"
404
+
help = "The path to the invoice TOML file"
405
405
)]
406
406
pubpath:PathBuf,
407
407
}
@@ -413,19 +413,19 @@ pub struct PushFile {
413
413
#[clap(
414
414
index = 2,
415
415
value_name = "FILE",
416
-
about = "The path to the file that should be pushed as a parcel"
416
+
help = "The path to the file that should be pushed as a parcel"
417
417
)]
418
418
pubpath:PathBuf,
419
419
#[clap(
420
420
short = 'n',
421
421
long = "name",
422
-
about = "the name of the parcel, defaults to the name + extension of the file"
422
+
help = "the name of the parcel, defaults to the name + extension of the file"
423
423
)]
424
424
pubname:Option<String>,
425
425
#[clap(
426
426
short = 'm',
427
427
long = "media-type",
428
-
about = "the media (mime) type of the file. If not provided, the tool will attempt to guess the mime type. If guessing fails, the default is `application/octet-stream`"
428
+
help = "the media (mime) type of the file. If not provided, the tool will attempt to guess the mime type. If guessing fails, the default is `application/octet-stream`"
0 commit comments