working command structure and advanced llm Integration
This commit is contained in:
@@ -3,21 +3,32 @@
|
||||
# from pathlib import path
|
||||
import click
|
||||
|
||||
# This defines a group with name basic which will nest other comands to be imported in the main loop
|
||||
@click.group(name="basic")
|
||||
def basic_group(): pass
|
||||
|
||||
# Adds a simple commmand to be run with `ctf test` per the function name
|
||||
@click.command()
|
||||
def test():
|
||||
print("hello from test")
|
||||
|
||||
def Set_Challenge(comp: str, chal: str, setDirectory: bool):
|
||||
# set the current challenge and competition from input
|
||||
if state.current_comp != comp:
|
||||
state.current_comp=comp
|
||||
state.comp_dir=pathlib
|
||||
# TODO archive the old competitions
|
||||
# A simple command with a positional(required) argument name
|
||||
@click.command()
|
||||
@click.argument('name')
|
||||
def greet(name):
|
||||
print(f"hello {name}")
|
||||
|
||||
if state.current_chal != chal:
|
||||
state.current_chal=chal
|
||||
print("challenge already set")
|
||||
# TODO archive the old challenges
|
||||
# TODO set the directory to challenge directory, with ignore option
|
||||
# def Set_Challenge(comp: str, chal: str, setDirectory: bool):
|
||||
# # set the current challenge and competition from input
|
||||
# if state.current_comp != comp:
|
||||
# state.current_comp=comp
|
||||
# state.comp_dir=pathlib
|
||||
# # TODO archive the old competitions
|
||||
|
||||
# if state.current_chal != chal:
|
||||
# state.current_chal=chal
|
||||
# print("challenge already set")
|
||||
# # TODO archive the old challenges
|
||||
# # TODO set the directory to challenge directory, with ignore option
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user