changed config to use dict and tomlload
This commit is contained in:
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user