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__":