mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
regen all APIs
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
[package]
|
||||
|
||||
name = "google-webfonts1-cli"
|
||||
version = "5.0.3+20221206"
|
||||
version = "5.0.3+20240227"
|
||||
authors = ["Sebastian Thiel <byronimo@gmail.com>"]
|
||||
description = "A complete library to interact with Webfonts (protocol v1)"
|
||||
repository = "https://github.com/Byron/google-apis-rs/tree/main/gen/webfonts1-cli"
|
||||
@@ -38,5 +38,5 @@ tower-service = "^0.3.1"
|
||||
|
||||
[dependencies.google-webfonts1]
|
||||
path = "../webfonts1"
|
||||
version = "5.0.3+20221206"
|
||||
version = "5.0.3+20240227"
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/ma
|
||||
|
||||
# Usage
|
||||
|
||||
This documentation was generated from the *Webfonts* API at revision *20221206*. The CLI is at version *5.0.3*.
|
||||
This documentation was generated from the *Webfonts* API at revision *20240227*. The CLI is at version *5.0.3*.
|
||||
|
||||
```bash
|
||||
webfonts1 [options]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
site_name: Webfonts v5.0.3+20221206
|
||||
site_name: Webfonts v5.0.3+20240227
|
||||
site_url: http://byron.github.io/google-apis-rs/google-webfonts1-cli
|
||||
site_description: A complete library to interact with Webfonts (protocol v1)
|
||||
|
||||
|
||||
@@ -56,9 +56,18 @@ where
|
||||
for parg in opt.values_of("v").map(|i|i.collect()).unwrap_or(Vec::new()).iter() {
|
||||
let (key, value) = parse_kv_arg(&*parg, err, false);
|
||||
match key {
|
||||
"subset" => {
|
||||
call = call.subset(value.unwrap_or(""));
|
||||
},
|
||||
"sort" => {
|
||||
call = call.sort(value.unwrap_or(""));
|
||||
},
|
||||
"family" => {
|
||||
call = call.add_family(value.unwrap_or(""));
|
||||
},
|
||||
"capability" => {
|
||||
call = call.add_capability(value.unwrap_or(""));
|
||||
},
|
||||
_ => {
|
||||
let mut found = false;
|
||||
for param in &self.gp {
|
||||
@@ -72,7 +81,7 @@ where
|
||||
err.issues.push(CLIError::UnknownParameter(key.to_string(),
|
||||
{let mut v = Vec::new();
|
||||
v.extend(self.gp.iter().map(|v|*v));
|
||||
v.extend(["sort"].iter().map(|v|*v));
|
||||
v.extend(["capability", "family", "sort", "subset"].iter().map(|v|*v));
|
||||
v } ));
|
||||
}
|
||||
}
|
||||
@@ -215,7 +224,7 @@ async fn main() {
|
||||
|
||||
let mut app = App::new("webfonts1")
|
||||
.author("Sebastian Thiel <byronimo@gmail.com>")
|
||||
.version("5.0.3+20221206")
|
||||
.version("5.0.3+20240227")
|
||||
.about("The Google Web Fonts Developer API lets you retrieve information about web fonts served by Google.")
|
||||
.after_help("All documentation details can be found at http://byron.github.io/google-apis-rs/google_webfonts1_cli")
|
||||
.arg(Arg::with_name("folder")
|
||||
|
||||
Reference in New Issue
Block a user