initialized as project working now
This commit is contained in:
@@ -5,3 +5,15 @@ description = "An AI enhanced CTF toolchain"
|
|||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.14"
|
requires-python = ">=3.14"
|
||||||
dependencies = []
|
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"]
|
||||||
|
|||||||
@@ -2,6 +2,9 @@
|
|||||||
# src/commands.py
|
# src/commands.py
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
def test():
|
||||||
|
print("hello from test")
|
||||||
|
|
||||||
# Read variables
|
# Read variables
|
||||||
|
|
||||||
# Initialize a challenge
|
# Initialize a challenge
|
||||||
|
|||||||
@@ -1,7 +1,11 @@
|
|||||||
# src/main.py
|
# src/main.py
|
||||||
# Parses and calls commands
|
# Parses and calls commands
|
||||||
|
|
||||||
|
import argparse
|
||||||
|
from ctf import commands
|
||||||
def main():
|
def main():
|
||||||
print("Hello from ctf!")
|
print("Hello from ctf!")
|
||||||
|
commands.test()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user