mirror of
https://git.srhtnin.garden/sarah/SaraSuite.git
synced 2026-10-14 18:28:11 +02:00
Initial commit
This commit is contained in:
commit
bea0f43947
25 files changed
+2327
No files matched your search
@@ -0,0 +1,51 @@
|
||||
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.
|
||||
Reference in new issue
Block a user