Compare commits
16 Commits
feat/try-a
...
main
Author | SHA1 | Date | |
---|---|---|---|
15298f1f96 | |||
b86fec2a58 | |||
687792706b | |||
1c29770ce2 | |||
c1e1215f3c | |||
e94513c24f | |||
6aa90d22ea | |||
8fe00b22c5 | |||
78262a138d | |||
bcebe4bce4 | |||
1f8a5d52c4 | |||
9207ef8f81 | |||
7df629290a | |||
54829a7fe4
|
|||
0ebe88a470
|
|||
67af5e7aa6 |
1457
Cargo.lock
generated
1457
Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -39,7 +39,7 @@ tempfile = { version = "3.10.0" }
|
|||||||
serde_json = "1.0.113"
|
serde_json = "1.0.113"
|
||||||
rlua = "0.19.8"
|
rlua = "0.19.8"
|
||||||
rlua-searcher = "0.1.0"
|
rlua-searcher = "0.1.0"
|
||||||
dotenv = { version = "0.15.0", features = ["clap"] }
|
dotenvy = { version = "0.15.7" }
|
||||||
blake3 = "1.5.0"
|
blake3 = "1.5.0"
|
||||||
tokio = { version = "1.36.0", features = ["full"] }
|
tokio = { version = "1.36.0", features = ["full"] }
|
||||||
futures-util = "0.3.30"
|
futures-util = "0.3.30"
|
||||||
|
@@ -129,7 +129,7 @@ pub fn execute_init(exe_submatch: &ArgMatches, _cli: CuddleCli) -> anyhow::Resul
|
|||||||
if dir.count() != 0 {
|
if dir.count() != 0 {
|
||||||
for entry in read_dir(&path)? {
|
for entry in read_dir(&path)? {
|
||||||
let entry = entry?;
|
let entry = entry?;
|
||||||
if entry.file_name() == ".git" {
|
if entry.file_name() == ".git" || entry.file_name() == ".jj" {
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
anyhow::bail!("Directory {} is not empty", &path);
|
anyhow::bail!("Directory {} is not empty", &path);
|
||||||
|
@@ -11,7 +11,7 @@ mod util;
|
|||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
fn main() -> anyhow::Result<()> {
|
||||||
init_logging()?;
|
init_logging()?;
|
||||||
let _ = dotenv::dotenv();
|
let _ = dotenvy::dotenv();
|
||||||
|
|
||||||
let config = CuddleConfig::from_env()?;
|
let config = CuddleConfig::from_env()?;
|
||||||
|
|
||||||
|
@@ -98,6 +98,7 @@ impl From<CuddlePlanVariables> for Vec<CuddleVariable> {
|
|||||||
pub enum CuddlePlanVar {
|
pub enum CuddlePlanVar {
|
||||||
Str(String),
|
Str(String),
|
||||||
Nested(HashMap<String, CuddlePlanVar>),
|
Nested(HashMap<String, CuddlePlanVar>),
|
||||||
|
Array(Vec<CuddlePlanVar>),
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
@@ -120,6 +121,7 @@ impl From<HashMap<String, CuddlePlanVar>> for CuddleVariables {
|
|||||||
|
|
||||||
variables.append(&mut combined_variables);
|
variables.append(&mut combined_variables);
|
||||||
}
|
}
|
||||||
|
CuddlePlanVar::Array(_) => {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"additionalProperties": false,
|
"additionalProperties": true,
|
||||||
"properties": {
|
"properties": {
|
||||||
"base": {
|
"base": {
|
||||||
"title": "Base url from which to base current cuddle plan on",
|
"title": "Base url from which to base current cuddle plan on",
|
||||||
@@ -27,6 +27,9 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object"
|
"type": "object"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"type": "array"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user