Compare commits

...

4 Commits

Author SHA1 Message Date
5c622cc034 feat: with gen 2023-04-03 16:40:38 +02:00
b67baf2698 Merge branch 'main' into feat/dagger-v0.4.2 2023-04-03 16:25:44 +02:00
70acbb5fc0 feat: with 0.4.2 2023-04-03 16:24:11 +02:00
ee380928c7 feat: fix codegen 2023-03-28 14:38:11 +02:00
3 changed files with 21 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ async fn run_codegen(client: Arc<Query>, _subm: &ArgMatches) -> eyre::Result<()>
.with_exec(vec![
"cargo",
"run",
"-p",
"dagger-bootstrap",
"--",
"generate",
"--output",

View File

@@ -1,6 +1,6 @@
#![deny(warnings)]
pub const DAGGER_ENGINE_VERSION: &'static str = "0.4.0";
pub const DAGGER_ENGINE_VERSION: &'static str = "0.4.2";
pub mod cli_session;
pub mod config;

View File

@@ -2775,6 +2775,24 @@ impl Query {
graphql_client: self.graphql_client.clone(),
};
}
/// Sets a secret given a user defined name to its plaintext and returns the secret.
///
/// # Arguments
///
/// * `name` - The user defined name for this secret
/// * `plaintext` - The plaintext of the secret
pub fn set_secret(&self, name: impl Into<String>, plaintext: impl Into<String>) -> Secret {
let mut query = self.selection.select("setSecret");
query = query.arg("name", name.into());
query = query.arg("plaintext", plaintext.into());
return Secret {
proc: self.proc.clone(),
selection: query,
graphql_client: self.graphql_client.clone(),
};
}
/// Loads a socket by its ID.
///
/// # Arguments