From c3eaeabac75c4a2f05e67677e38bf524b77683d5 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sat, 2 Nov 2024 18:26:33 +0100 Subject: [PATCH] Add backup capability for `aliae` --- scripts/Common/Software/aliae/main.fish | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/Common/Software/aliae/main.fish b/scripts/Common/Software/aliae/main.fish index 68363873..c67001a1 100755 --- a/scripts/Common/Software/aliae/main.fish +++ b/scripts/Common/Software/aliae/main.fish @@ -42,9 +42,18 @@ begin sudo -HE pwsh "$dir/Main.ps1" Configure end + function getBackupArgs + printf "%s\n" --full-path "/etc/aliae/aliae.yml" / + end + function userConfig -V dir runPSUserConfig "$dir/Main.ps1" $argv end + function getUserBackupArgs + argparse -i "user=" -- $argv + printf "%s\n" --base-directory ~"$_flag_user" --hidden --exact-depth 1 --glob ".aliae.yaml" + end + runInstaller $argv end