mirror of
https://github.com/kjuulh/dagger-rs.git
synced 2024-11-09 11:21:51 +01:00
chore(sdk): ran clippy
This commit is contained in:
parent
8385aa8a15
commit
803cfc4f8c
@ -3,7 +3,7 @@ use genco::prelude::rust;
|
||||
use genco::quote;
|
||||
use itertools::Itertools;
|
||||
|
||||
use crate::functions::{type_ref_is_optional, CommonFunctions};
|
||||
use crate::functions::{CommonFunctions};
|
||||
use crate::rust::functions::{
|
||||
field_options_struct_name, format_function, format_name, format_optional_args,
|
||||
format_struct_comment, format_struct_name,
|
||||
|
@ -35,7 +35,7 @@ impl CacheVolume {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<CacheId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -216,7 +216,7 @@ impl Container {
|
||||
pub async fn default_args(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("defaultArgs");
|
||||
let query = self.selection.select("defaultArgs");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -239,7 +239,7 @@ impl Container {
|
||||
pub async fn entrypoint(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("entrypoint");
|
||||
let query = self.selection.select("entrypoint");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -258,7 +258,7 @@ impl Container {
|
||||
pub fn env_variables(
|
||||
&self,
|
||||
) -> Vec<EnvVariable> {
|
||||
let mut query = self.selection.select("envVariables");
|
||||
let query = self.selection.select("envVariables");
|
||||
|
||||
return vec![EnvVariable {
|
||||
proc: self.proc.clone(),
|
||||
@ -274,7 +274,7 @@ impl Container {
|
||||
pub fn exec(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("exec");
|
||||
let query = self.selection.select("exec");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@ -321,7 +321,7 @@ impl Container {
|
||||
pub async fn exit_code(
|
||||
&self,
|
||||
) -> eyre::Result<isize> {
|
||||
let mut query = self.selection.select("exitCode");
|
||||
let query = self.selection.select("exitCode");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -405,7 +405,7 @@ impl Container {
|
||||
pub fn fs(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("fs");
|
||||
let query = self.selection.select("fs");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@ -417,7 +417,7 @@ impl Container {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<ContainerId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -436,7 +436,7 @@ impl Container {
|
||||
pub fn labels(
|
||||
&self,
|
||||
) -> Vec<Label> {
|
||||
let mut query = self.selection.select("labels");
|
||||
let query = self.selection.select("labels");
|
||||
|
||||
return vec![Label {
|
||||
proc: self.proc.clone(),
|
||||
@ -448,7 +448,7 @@ impl Container {
|
||||
pub async fn mounts(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("mounts");
|
||||
let query = self.selection.select("mounts");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -499,7 +499,7 @@ impl Container {
|
||||
pub async fn platform(
|
||||
&self,
|
||||
) -> eyre::Result<Platform> {
|
||||
let mut query = self.selection.select("platform");
|
||||
let query = self.selection.select("platform");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -546,7 +546,7 @@ impl Container {
|
||||
pub fn rootfs(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("rootfs");
|
||||
let query = self.selection.select("rootfs");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@ -559,7 +559,7 @@ impl Container {
|
||||
pub async fn stderr(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("stderr");
|
||||
let query = self.selection.select("stderr");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -568,7 +568,7 @@ impl Container {
|
||||
pub async fn stdout(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("stdout");
|
||||
let query = self.selection.select("stdout");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -576,7 +576,7 @@ impl Container {
|
||||
pub async fn user(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("user");
|
||||
let query = self.selection.select("user");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -588,7 +588,7 @@ impl Container {
|
||||
pub fn with_default_args(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("withDefaultArgs");
|
||||
let query = self.selection.select("withDefaultArgs");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@ -1188,7 +1188,7 @@ impl Container {
|
||||
pub async fn workdir(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("workdir");
|
||||
let query = self.selection.select("workdir");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1298,7 +1298,7 @@ impl Directory {
|
||||
pub fn docker_build(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("dockerBuild");
|
||||
let query = self.selection.select("dockerBuild");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@ -1345,7 +1345,7 @@ impl Directory {
|
||||
pub async fn entries(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("entries");
|
||||
let query = self.selection.select("entries");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1397,7 +1397,7 @@ impl Directory {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<DirectoryId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1703,7 +1703,7 @@ impl EnvVariable {
|
||||
pub async fn name(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("name");
|
||||
let query = self.selection.select("name");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1711,7 +1711,7 @@ impl EnvVariable {
|
||||
pub async fn value(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("value");
|
||||
let query = self.selection.select("value");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1727,7 +1727,7 @@ impl File {
|
||||
pub async fn contents(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("contents");
|
||||
let query = self.selection.select("contents");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1746,7 +1746,7 @@ impl File {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<FileId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1754,7 +1754,7 @@ impl File {
|
||||
pub fn secret(
|
||||
&self,
|
||||
) -> Secret {
|
||||
let mut query = self.selection.select("secret");
|
||||
let query = self.selection.select("secret");
|
||||
|
||||
return Secret {
|
||||
proc: self.proc.clone(),
|
||||
@ -1766,7 +1766,7 @@ impl File {
|
||||
pub async fn size(
|
||||
&self,
|
||||
) -> eyre::Result<isize> {
|
||||
let mut query = self.selection.select("size");
|
||||
let query = self.selection.select("size");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1806,7 +1806,7 @@ impl GitRef {
|
||||
pub async fn digest(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("digest");
|
||||
let query = self.selection.select("digest");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1818,7 +1818,7 @@ impl GitRef {
|
||||
pub fn tree(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("tree");
|
||||
let query = self.selection.select("tree");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@ -1878,7 +1878,7 @@ impl GitRepository {
|
||||
pub async fn branches(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("branches");
|
||||
let query = self.selection.select("branches");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -1916,7 +1916,7 @@ impl GitRepository {
|
||||
pub async fn tags(
|
||||
&self,
|
||||
) -> eyre::Result<Vec<String>> {
|
||||
let mut query = self.selection.select("tags");
|
||||
let query = self.selection.select("tags");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2029,7 +2029,7 @@ impl Host {
|
||||
pub fn workdir(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("workdir");
|
||||
let query = self.selection.select("workdir");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@ -2074,7 +2074,7 @@ impl HostVariable {
|
||||
pub fn secret(
|
||||
&self,
|
||||
) -> Secret {
|
||||
let mut query = self.selection.select("secret");
|
||||
let query = self.selection.select("secret");
|
||||
|
||||
return Secret {
|
||||
proc: self.proc.clone(),
|
||||
@ -2086,7 +2086,7 @@ impl HostVariable {
|
||||
pub async fn value(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("value");
|
||||
let query = self.selection.select("value");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2102,7 +2102,7 @@ impl Label {
|
||||
pub async fn name(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("name");
|
||||
let query = self.selection.select("name");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2110,7 +2110,7 @@ impl Label {
|
||||
pub async fn value(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("value");
|
||||
let query = self.selection.select("value");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2126,7 +2126,7 @@ impl Project {
|
||||
pub fn extensions(
|
||||
&self,
|
||||
) -> Vec<Project> {
|
||||
let mut query = self.selection.select("extensions");
|
||||
let query = self.selection.select("extensions");
|
||||
|
||||
return vec![Project {
|
||||
proc: self.proc.clone(),
|
||||
@ -2138,7 +2138,7 @@ impl Project {
|
||||
pub fn generated_code(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("generatedCode");
|
||||
let query = self.selection.select("generatedCode");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@ -2150,7 +2150,7 @@ impl Project {
|
||||
pub async fn install(
|
||||
&self,
|
||||
) -> eyre::Result<bool> {
|
||||
let mut query = self.selection.select("install");
|
||||
let query = self.selection.select("install");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2158,7 +2158,7 @@ impl Project {
|
||||
pub async fn name(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("name");
|
||||
let query = self.selection.select("name");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2166,7 +2166,7 @@ impl Project {
|
||||
pub async fn schema(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("schema");
|
||||
let query = self.selection.select("schema");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2174,7 +2174,7 @@ impl Project {
|
||||
pub async fn sdk(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("sdk");
|
||||
let query = self.selection.select("sdk");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2248,7 +2248,7 @@ impl Query {
|
||||
pub fn container(
|
||||
&self,
|
||||
) -> Container {
|
||||
let mut query = self.selection.select("container");
|
||||
let query = self.selection.select("container");
|
||||
|
||||
return Container {
|
||||
proc: self.proc.clone(),
|
||||
@ -2287,7 +2287,7 @@ impl Query {
|
||||
pub async fn default_platform(
|
||||
&self,
|
||||
) -> eyre::Result<Platform> {
|
||||
let mut query = self.selection.select("defaultPlatform");
|
||||
let query = self.selection.select("defaultPlatform");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2299,7 +2299,7 @@ impl Query {
|
||||
pub fn directory(
|
||||
&self,
|
||||
) -> Directory {
|
||||
let mut query = self.selection.select("directory");
|
||||
let query = self.selection.select("directory");
|
||||
|
||||
return Directory {
|
||||
proc: self.proc.clone(),
|
||||
@ -2391,7 +2391,7 @@ impl Query {
|
||||
pub fn host(
|
||||
&self,
|
||||
) -> Host {
|
||||
let mut query = self.selection.select("host");
|
||||
let query = self.selection.select("host");
|
||||
|
||||
return Host {
|
||||
proc: self.proc.clone(),
|
||||
@ -2495,7 +2495,7 @@ impl Query {
|
||||
pub fn socket(
|
||||
&self,
|
||||
) -> Socket {
|
||||
let mut query = self.selection.select("socket");
|
||||
let query = self.selection.select("socket");
|
||||
|
||||
return Socket {
|
||||
proc: self.proc.clone(),
|
||||
@ -2537,7 +2537,7 @@ impl Secret {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<SecretId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2545,7 +2545,7 @@ impl Secret {
|
||||
pub async fn plaintext(
|
||||
&self,
|
||||
) -> eyre::Result<String> {
|
||||
let mut query = self.selection.select("plaintext");
|
||||
let query = self.selection.select("plaintext");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
@ -2561,7 +2561,7 @@ impl Socket {
|
||||
pub async fn id(
|
||||
&self,
|
||||
) -> eyre::Result<SocketId> {
|
||||
let mut query = self.selection.select("id");
|
||||
let query = self.selection.select("id");
|
||||
|
||||
query.execute(&graphql_client(&self.conn)).await
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user