Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

Commit 4a6f139

Browse files
Merge pull request #272 from thomastaylor312/chore/bump_0.7
chore(*): Bumps version for 0.7 release
2 parents e9c46ca + 561a450 commit 4a6f139

File tree

8 files changed

+262
-220
lines changed

8 files changed

+262
-220
lines changed

Cargo.lock

Lines changed: 186 additions & 152 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bindle"
3-
version = "0.6.0"
3+
version = "0.7.0"
44
authors = [
55
"Matt Butcher <matt.butcher@microsoft.com>",
66
"Taylor Thomas <taylor.thomas@microsoft.com>"
@@ -42,7 +42,7 @@ toml = "0.5.8"
4242
serde = { version = "1.0.130", features = ["derive"] }
4343
serde_json = "1.0.68"
4444
tempfile = "3.2.0"
45-
sha2 = "0.9.8"
45+
sha2 = "0.10"
4646
thiserror = "1.0.29"
4747
semver = { version = "1.0.4", features = ["serde"] }
4848
tokio = { version = "1.11.0", features = ["full"] }
@@ -52,7 +52,7 @@ warp = { version = "0.3", features = ["tls"], optional = true }
5252
bytes = "1.1.0"
5353
async-trait = "0.1.51"
5454
futures = "0.3.17"
55-
clap = { version = "3.0.0-beta.5", optional = true }
55+
clap = { version = "3", features = ["derive", "env", "cargo"], optional = true }
5656
reqwest = { version = "0.11.4", features = ["stream"] }
5757
hyper = "0.14.12"
5858
url = "2.2.2"
@@ -81,7 +81,7 @@ atty = {version = "0.2", optional = true}
8181
indexmap = "~1.6.2"
8282

8383
[dev-dependencies]
84-
rstest = "0.11.0"
84+
rstest = "0.12.0"
8585

8686
[[bin]]
8787
name = "bindle-server"

bin/client/opts.rs

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -15,36 +15,36 @@ pub struct Opts {
1515
short = 's',
1616
long = "server",
1717
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"
1919
)]
2020
pub server_url: String,
2121
#[clap(
2222
short = 'd',
2323
long = "bindle-dir",
2424
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"
2626
)]
2727
pub bindle_dir: Option<PathBuf>,
2828

2929
#[clap(
3030
short = 'r',
3131
long = "keyring",
3232
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"
3434
)]
3535
pub keyring: Option<PathBuf>,
3636

3737
#[clap(
3838
short = 't',
3939
long = "token-file",
4040
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"
4242
)]
4343
pub token_file: Option<PathBuf>,
4444

4545
#[clap(
4646
long = "http-user",
47-
about = "Username for HTTP Basic auth",
47+
help = "Username for HTTP Basic auth",
4848
requires = "http-password",
4949
env = "BINDLE_HTTP_PASSWORD",
5050
hide_env_values = true
@@ -53,7 +53,7 @@ pub struct Opts {
5353

5454
#[clap(
5555
long = "http-password",
56-
about = "Password for HTTP Basic auth",
56+
help = "Password for HTTP Basic auth",
5757
requires = "http-user",
5858
env = "BINDLE_HTTP_USER"
5959
)]
@@ -62,7 +62,7 @@ pub struct Opts {
6262
#[clap(
6363
short = 'k',
6464
long = "insecure",
65-
about = "If set, ignore server certificate errors",
65+
help = "If set, ignore server certificate errors",
6666
takes_value = false
6767
)]
6868
pub insecure: bool,
@@ -135,19 +135,19 @@ pub struct Info {
135135
#[clap(
136136
index = 1,
137137
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"
139139
)]
140140
pub bindle_id: String,
141141
#[clap(
142142
short = 'y',
143143
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"
145145
)]
146146
pub yanked: bool,
147147
#[clap(
148148
short = 'f',
149149
long = "output-format",
150-
about = "choose an output format",
150+
help = "choose an output format",
151151
possible_values = &["json", "toml"],
152152
)]
153153
pub output: Option<String>,
@@ -158,14 +158,14 @@ pub struct Push {
158158
#[clap(
159159
index = 1,
160160
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"
162162
)]
163163
pub bindle_id: String,
164164
#[clap(
165165
short = 'p',
166166
long = "path",
167167
default_value = "./",
168-
about = "A path where the standalone bindle directory is located"
168+
help = "A path where the standalone bindle directory is located"
169169
)]
170170
pub path: PathBuf,
171171
}
@@ -175,19 +175,19 @@ pub struct Get {
175175
#[clap(
176176
index = 1,
177177
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"
179179
)]
180180
pub bindle_id: String,
181181
#[clap(
182182
short = 'y',
183183
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"
185185
)]
186186
pub yanked: bool,
187187
#[clap(
188188
short = 'e',
189189
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"
191191
)]
192192
pub export: Option<PathBuf>,
193193
}
@@ -197,7 +197,7 @@ pub struct Yank {
197197
#[clap(
198198
index = 1,
199199
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"
201201
)]
202202
pub bindle_id: String,
203203
}
@@ -220,33 +220,33 @@ pub struct Search {
220220
#[clap(
221221
short = 'q',
222222
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"
224224
)]
225225
pub query: 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)]
227227
pub version: Option<String>,
228228
#[clap(
229229
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"
231231
)]
232232
pub offset: Option<u64>,
233-
#[clap(long = "limit", about = "the limit of results per page")]
233+
#[clap(long = "limit", help = "the limit of results per page")]
234234
pub limit: Option<u8>,
235235
#[clap(
236236
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"
239239
)]
240240
pub strict: Option<bool>,
241241
#[clap(
242242
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"
244244
)]
245245
pub yanked: Option<bool>,
246246
#[clap(
247247
short = 'f',
248248
long = "output-format",
249-
about = "choose an output format",
249+
help = "choose an output format",
250250
possible_values = &["json", "toml", "table"],
251251
)]
252252
pub output: Option<String>,
@@ -270,20 +270,20 @@ pub struct GetParcel {
270270
#[clap(
271271
index = 1,
272272
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"
274274
)]
275275
pub bindle_id: bindle::Id,
276276
#[clap(
277277
index = 2,
278278
value_name = "PARCEL_SHA",
279-
about = "The SHA256 of the parcel"
279+
help = "The SHA256 of the parcel"
280280
)]
281281
pub sha: String,
282282
#[clap(
283283
short = 'o',
284284
long = "output",
285285
default_value = "./parcel.dat",
286-
about = "The location where to output the parcel to"
286+
help = "The location where to output the parcel to"
287287
)]
288288
pub output: PathBuf,
289289
}
@@ -293,20 +293,20 @@ pub struct GetInvoice {
293293
#[clap(
294294
index = 1,
295295
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"
297297
)]
298298
pub bindle_id: String,
299299
#[clap(
300300
short = 'o',
301301
long = "output",
302302
default_value = "./invoice.toml",
303-
about = "The location where to output the invoice to"
303+
help = "The location where to output the invoice to"
304304
)]
305305
pub output: PathBuf,
306306
#[clap(
307307
short = 'y',
308308
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"
310310
)]
311311
pub yanked: bool,
312312
}
@@ -316,19 +316,19 @@ pub struct GenerateLabel {
316316
#[clap(
317317
index = 1,
318318
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"
320320
)]
321321
pub path: PathBuf,
322322
#[clap(
323323
short = 'n',
324324
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"
326326
)]
327327
pub name: Option<String>,
328328
#[clap(
329329
short = 'm',
330330
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`"
332332
)]
333333
pub media_type: Option<String>,
334334
}
@@ -338,13 +338,13 @@ pub struct CreateKey {
338338
#[clap(
339339
index = 1,
340340
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>'"
342342
)]
343343
pub label: String,
344344
#[clap(
345345
short = 'f',
346346
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."
348348
)]
349349
pub secret_file: Option<PathBuf>,
350350
}
@@ -355,14 +355,14 @@ pub struct PrintKey {
355355
short = 'f',
356356
long = "secrets-file",
357357
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."
359359
)]
360360
pub secret_file: Option<PathBuf>,
361361
#[clap(
362362
short = 'l',
363363
long = "label",
364364
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'."
366366
)]
367367
pub label: Option<String>,
368368
}
@@ -372,25 +372,25 @@ pub struct SignInvoice {
372372
#[clap(
373373
index = 1,
374374
value_name = "INVOICE",
375-
about = "the path to the invoice to sign"
375+
help = "the path to the invoice to sign"
376376
)]
377377
pub invoice: String,
378378
#[clap(
379379
short = 'f',
380380
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"
382382
)]
383383
pub secret_file: Option<PathBuf>,
384384
#[clap(
385385
short = 'r',
386386
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"
388388
)]
389389
pub role: Option<String>,
390390
#[clap(
391391
short = 'o',
392392
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"
394394
)]
395395
pub destination: Option<String>,
396396
}
@@ -401,7 +401,7 @@ pub struct PushInvoice {
401401
index = 1,
402402
value_name = "FILE",
403403
default_value = "./invoice.toml",
404-
about = "The path to the invoice TOML file"
404+
help = "The path to the invoice TOML file"
405405
)]
406406
pub path: PathBuf,
407407
}
@@ -413,19 +413,19 @@ pub struct PushFile {
413413
#[clap(
414414
index = 2,
415415
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"
417417
)]
418418
pub path: PathBuf,
419419
#[clap(
420420
short = 'n',
421421
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"
423423
)]
424424
pub name: Option<String>,
425425
#[clap(
426426
short = 'm',
427427
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`"
429429
)]
430430
pub media_type: Option<String>,
431431
}

0 commit comments

Comments
 (0)