feat: add base crates

This commit is contained in:
2023-02-20 21:35:19 +01:00
parent 88ed032ef0
commit 5fbae8abd6
10 changed files with 731 additions and 5 deletions

7
examples/service/char_plan/Cargo.lock generated Normal file
View File

@@ -0,0 +1,7 @@
# This file is automatically @generated by Cargo.
# It is not intended for manual editing.
version = 3
[[package]]
name = "char"
version = "0.1.0"

View File

@@ -0,0 +1,9 @@
[package]
name = "char_plan"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
char = { path = "../../../crates/char" }

View File

View File

@@ -0,0 +1,14 @@
struct Run;
impl char::Action for Run {}
struct Build;
impl char::Action for Build {}
fn main() {
char::new()
.add_context(char::dagger::Context::default())
.add_action(Run {})
.add_action(Build {})
.add_plugin(char::std::k8s::Context::default())
.execute();
}