Skip to content

Commit

Permalink
indoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Weber committed Aug 7, 2023
1 parent 4e45c1d commit 65059c8
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ anyhow = "1.0.72"
dialoguer = { version = "0.10.4", optional = true }
schemars = "0.8.12"
fancy-regex = "0.11.0"
indoc = "2.0.3"

[dev-dependencies]
rusty-hook = "0.11.2"
19 changes: 12 additions & 7 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
use std::collections::{
BTreeMap,
HashMap,
use {
indoc::indoc,
std::collections::{
BTreeMap,
HashMap,
},
};

#[derive(Debug, serde::Serialize, serde::Deserialize, schemars::JsonSchema)]
Expand Down Expand Up @@ -65,7 +68,8 @@ pub enum VariableDefinition {
}

pub async fn default_config() -> String {
r###"version: 0.13
indoc! {
r#"version: 0.13
templates:
zero:
content:
Expand All @@ -76,7 +80,7 @@ pub async fn default_config() -> String {
a.alpha:
static: alpha
b.bravo: arg
one:
content:
file: ./.complate/templates/arbitraty-template-file.tpl
Expand Down Expand Up @@ -135,7 +139,8 @@ pub async fn default_config() -> String {
variables:
test:
static: "test"
"###
"#

}
.into()
}

0 comments on commit 65059c8

Please sign in to comment.