Added base files

This commit is contained in:
Kasper Juul Hermansen 2022-08-09 13:23:30 +02:00
commit 94f814dd11
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
9 changed files with 67 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/target

11
Cargo.lock generated Normal file
View 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
View File

@ -0,0 +1,5 @@
[workspace]
members = [
"cuddle_cli",
"examples/base"
]

8
cuddle_cli/Cargo.toml Normal file
View 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
View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

8
examples/base/Cargo.toml Normal file
View 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]

View File

@ -0,0 +1,3 @@
# yaml-language-server: $schema=../../schemas/base.json
base: "git@git.front.kjuulh.io:kjuulh/cuddle-base.git"

View File

@ -0,0 +1,3 @@
fn main() {
println!("Hello, world!");
}

25
schemas/base.json Normal file
View 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"
}