summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2026-02-28 13:53:37 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2026-02-28 13:53:37 +0100
commitb316bff4178342a54f48fa6ec3bc72f0250830ee (patch)
tree45de8f255a683583d71e504e9c662187408e8cde
parent5bfbbdba00c7f8a9c8f3085daf1420fcde38cf9c (diff)
chore: update updater.py
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
-rwxr-xr-xtools/updater.py27
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()
+
+