Add newline to end of all script files

integration-not-installation
trivernis 2 years ago
parent 66e39c1d4b
commit 07fe67df24
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -1,4 +1,4 @@
# Applies all system changes of `configure-locale`
def main [cfg] {
echo "Executing up task `configure-locale` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `configure-network`
def main [cfg] {
echo "Executing up task `configure-network` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `configure-unakite`
def main [cfg] {
echo "Executing up task `configure-unakite` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `create-partitions`
def main [cfg] {
echo "Executing up task `create-partitions` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-base`
def main [cfg] {
echo "Executing up task `install-base` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-bootloader`
def main [cfg] {
echo "Executing up task `install-bootloader` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-desktop`
def main [cfg] {
echo "Executing up task `install-desktop` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-extra-packages`
def main [cfg] {
echo "Executing up task `install-extra-packages` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-flatpak`
def main [cfg] {
echo "Executing up task `install-flatpak` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-kernels`
def main [cfg] {
echo "Executing up task `install-kernels` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-timeshift`
def main [cfg] {
echo "Executing up task `install-timeshift` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `install-zramd`
def main [cfg] {
echo "Executing up task `install-zramd` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `setup-root-user`
def main [cfg] {
echo "Executing up task `setup-root-user` with config" $cfg
}
}

@ -1,4 +1,4 @@
# Applies all system changes of `setup-users`
def main [cfg] {
echo "Executing up task `setup-users` with config" $cfg
}
}

@ -24,30 +24,29 @@ pub async fn generate_script_files<P: AsRef<Path>>(output: P) -> AppResult<()> {
if !script_dir.exists() {
fs::create_dir_all(&script_dir).await?;
}
let up_path = output.join(&up_script);
let down_path = output.join(down_script);
fs::write(
output.join(up_script),
&up_path,
format!(
r#"
# Applies all system changes of `{name}`
r#"# Applies all system changes of `{name}`
def main [cfg] {{
echo "Executing up task `{name}` with config" $cfg
}}
"#
)
.trim(),
"#
),
)
.await?;
fs::write(
output.join(down_script),
&down_path,
format!(
r#"
# Reverts all system changes of `{name}`
r#"# Reverts all system changes of `{name}`
def main [cfg] {{
echo "Executing up task `{name}` with config" $cfg
}}
"#
"#
)
.trim(),
)

Loading…
Cancel
Save