feat: add base crates
This commit is contained in:
7
examples/service/char_plan/Cargo.lock
generated
Normal file
7
examples/service/char_plan/Cargo.lock
generated
Normal 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"
|
9
examples/service/char_plan/Cargo.toml
Normal file
9
examples/service/char_plan/Cargo.toml
Normal 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" }
|
0
examples/service/char_plan/ci/.gitkeep
Normal file
0
examples/service/char_plan/ci/.gitkeep
Normal file
14
examples/service/char_plan/src/main.rs
Normal file
14
examples/service/char_plan/src/main.rs
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user