about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorTheofilos Augoustis <theofilos.augoustis@tum.de>2025-08-28 12:51:18 +0000
committerTheofilos Augoustis <theofilos.augoustis@tum.de>2025-08-28 12:51:18 +0000
commitae9751cb6d45313ddd7476c1daf0412cf196c8c9 (patch)
tree560e20226d3340c4ce8a4280bea92b7b7a1955a7
parentb531580e89e83c8557e76be42e435c2e45b8ad9a (diff)
downloadfocaccia-ae9751cb6d45313ddd7476c1daf0412cf196c8c9.tar.gz
focaccia-ae9751cb6d45313ddd7476c1daf0412cf196c8c9.zip
Add support for the convert tool
Diffstat (limited to '')
-rw-r--r--flake.nix10
-rw-r--r--pyproject.toml1
-rw-r--r--src/focaccia/tools/__init__.py0
-rwxr-xr-xsrc/focaccia/tools/convert.py (renamed from tools/convert.py)0
4 files changed, 8 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index ae0e37a..a96aa8e 100644
--- a/flake.nix
+++ b/flake.nix
@@ -198,16 +198,20 @@
 
 			export REPO_ROOT=$(git rev-parse --show-toplevel)
 		'';
-	in {
+	in rec {
 		# Default package just builds Focaccia
 		packages.default = pythonDevEnv;
 
 		# Default app is just Focaccia
-
 		apps = {
 			default = {
 				type = "app";
-				program = "${self.packages.default}/bin/focaccia";
+				program = "${packages.default}/bin/focaccia";
+			};
+
+			convert-log = {
+				type = "app";
+				program = "${packages.default}/bin/convert";
 			};
 
 			# Useful for synchronize the uv lockfile
diff --git a/pyproject.toml b/pyproject.toml
index 25cdcd6..0e9e624 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -26,6 +26,7 @@ dev = [
 
 [project.scripts]
 focaccia = "focaccia:cli.main"
+convert = "focaccia.tools:convert.main"
 
 [build-system]
 requires = ["hatchling"]
diff --git a/src/focaccia/tools/__init__.py b/src/focaccia/tools/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/src/focaccia/tools/__init__.py
diff --git a/tools/convert.py b/src/focaccia/tools/convert.py
index f21a2fa..f21a2fa 100755
--- a/tools/convert.py
+++ b/src/focaccia/tools/convert.py