diff options
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/updater.py | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/tools/updater.py b/tools/updater.py index f131071..1016275 100755 --- a/tools/updater.py +++ b/tools/updater.py @@ -1,16 +1,27 @@ #! /usr/bin/python3 -from os import system - # Copyright 2026, Amlal El Mahrouss and Ne.org contributors. # Open C++ Libraries is licensed under BSL-1.0 +from os import system + +class UpdateFunctor: + def __init__(self): + system("cd libs && cd tproc && git pull && cd ..") + system("cd libs && cd fix && git pull && cd ..") + system("cd libs && cd core && git pull && cd ..") + system("git add libs/core libs/fix libs/tproc") + system("git commit -s -S") + + +def main(): + functor = UpdateFunctor() + print("INFO: Updater: Functor called") + + if __name__ == '__main__': - print("precommit: running format.sh...") - system("cd libs && cd tproc && git pull && cd ..") - system("cd libs && cd fix && git pull && cd ..") - system("cd libs && cd core && git pull && cd ..") - system("git add libs/core libs/fix libs/tproc") - system("git commit -s -S") + main() + + |
