From 7e88b51db63269d6c87089a08a1c4eead08afbbe Mon Sep 17 00:00:00 2001 From: venus Date: Sun, 5 Apr 2026 23:21:33 -0500 Subject: [PATCH] initialized as project working now --- pyproject.toml | 12 ++++++++++++ src/ctf/commands.py | 3 +++ src/ctf/main.py | 4 ++++ 3 files changed, 19 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index e54ce7f..bfe8cdd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,3 +5,15 @@ description = "An AI enhanced CTF toolchain" readme = "README.md" requires-python = ">=3.14" dependencies = [] + +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project.scripts] +ctf = "ctf.main:main" + +[tool.hatch.build.targets.wheel] +packages = ["src/ctf"] + +extraPaths = ["src"] diff --git a/src/ctf/commands.py b/src/ctf/commands.py index 43095f2..8150abd 100644 --- a/src/ctf/commands.py +++ b/src/ctf/commands.py @@ -2,6 +2,9 @@ # src/commands.py import os +def test(): + print("hello from test") + # Read variables # Initialize a challenge diff --git a/src/ctf/main.py b/src/ctf/main.py index f0b6426..fe81f35 100644 --- a/src/ctf/main.py +++ b/src/ctf/main.py @@ -1,7 +1,11 @@ # src/main.py # Parses and calls commands + +import argparse +from ctf import commands def main(): print("Hello from ctf!") + commands.test() if __name__ == "__main__":