Added base files
This commit is contained in:
commit
94f814dd11
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
/target
|
11
Cargo.lock
generated
Normal file
11
Cargo.lock
generated
Normal file
@ -0,0 +1,11 @@
|
||||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "base"
|
||||
version = "0.1.0"
|
||||
|
||||
[[package]]
|
||||
name = "cuddle_cli"
|
||||
version = "0.1.0"
|
5
Cargo.toml
Normal file
5
Cargo.toml
Normal file
@ -0,0 +1,5 @@
|
||||
[workspace]
|
||||
members = [
|
||||
"cuddle_cli",
|
||||
"examples/base"
|
||||
]
|
8
cuddle_cli/Cargo.toml
Normal file
8
cuddle_cli/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "cuddle_cli"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
3
cuddle_cli/src/main.rs
Normal file
3
cuddle_cli/src/main.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
8
examples/base/Cargo.toml
Normal file
8
examples/base/Cargo.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "base"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
3
examples/base/cuddle.yaml
Normal file
3
examples/base/cuddle.yaml
Normal file
@ -0,0 +1,3 @@
|
||||
# yaml-language-server: $schema=../../schemas/base.json
|
||||
|
||||
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"
|
3
examples/base/src/main.rs
Normal file
3
examples/base/src/main.rs
Normal file
@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
println!("Hello, world!");
|
||||
}
|
25
schemas/base.json
Normal file
25
schemas/base.json
Normal file
@ -0,0 +1,25 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"base": {
|
||||
"title": "Base url from which to base current cuddle plan on",
|
||||
"description": "Base url from which to construct current cuddle plan, is recursive",
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "string",
|
||||
"title": "The url of the parameter"
|
||||
},
|
||||
{
|
||||
"type": "boolean",
|
||||
"title": "Whether it is enabled or not",
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"base"
|
||||
],
|
||||
"type": "object",
|
||||
"title": "Cuddle base schema"
|
||||
}
|
Loading…
Reference in New Issue
Block a user