changed config to use dict and tomlload

This commit is contained in:
venus
2026-04-23 05:18:46 -05:00
parent df46501731
commit 13a5603773
5 changed files with 65 additions and 39 deletions

View File

@@ -2,7 +2,7 @@
# Parses and calls commands
import argparse
from ctf.utils import state
import ctf.utils as util
def setArguments():
parser = argparse.ArgumentParser( #type:ignore
@@ -17,17 +17,7 @@ def setArguments():
def main():
state.info = "me"
# Parse arguments
# Current Ctf
# Current Challenge
# Validate args
# Call library functiions
# Set Ctf
args = setArguments()
if args.action == set:
print(f"setting ctf to{args.ctf}")
print(util.config["Competition"]["competition"])
if __name__ == "__main__":