Files
SaraSuite/Programs/SaraSortd/Manifest.toml
T
2026-09-24 22:04:04 +02:00

52 lines
1.3 KiB
TOML

Name = "SaraSortd"
Description = "Sorts files from input folders into output folders by the rules in its configs. Runs in the background as a systemd user service."
[Version]
File = "SaraSortd.py"
Pattern = '# Version = "([^"]+)"'
[Source]
Git = "{GitHost}/SaraSortd"
Include = ["SaraSortd.py", "LICENSE", "README.md"]
[Python]
Requirements = ["toml"]
[[Questions]]
Id = "RootDir"
Prompt = "Folder SaraSortd sorts in (RootDir)"
Default = "~/Sorting"
Kind = "Path"
[[Options]]
Id = "Autostart"
Label = "Start SaraSortd now and on every login"
Default = true
# SaraSortd reads ./GlobalConf.toml and copies ./InputDirConf.toml and
# ./OutputDirConf.toml into its folders, so all three live together in
# ConfigDir and the service runs from there.
[[Configs]]
Source = "GlobalConf.toml"
Target = "{ConfigDir}/GlobalConf.toml"
Set = { "DirectoryPaths.RootDir" = "{RootDir}" }
[[Configs]]
Source = "InputDirConf.toml"
Target = "{ConfigDir}/InputDirConf.toml"
[[Configs]]
Source = "OutputDirConf.toml"
Target = "{ConfigDir}/OutputDirConf.toml"
[[Templates]]
Source = "SaraSortd.service"
Target = "{SystemdUserDir}/SaraSortd.service"
[[Services]]
Unit = "SaraSortd.service"
Option = "Autostart"
# Everything SaraSortd makes inside the sorting folders is worked out from
# GlobalConf.toml by Hooks.py.