Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ challenges/*/terraform/versions.tf

.vscode/
.idea
stats.html
20 changes: 13 additions & 7 deletions ctf/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from typing_extensions import Annotated

from ctf import ENV, STATE
from ctf.askgod import app as askgod_app
from ctf.check import app as check_app
from ctf.deploy import app as deploy_app
from ctf.destroy import app as destroy_app
Expand All @@ -33,18 +34,23 @@
help="CLI tool to manage CTF challenges as code. Run from the root CTF repo directory or set the CTF_ROOT_DIR environment variable to run the tool.",
no_args_is_help=True,
)
app.add_typer(validate_app)
app.add_typer(init_app)
app.add_typer(new_app)
app.add_typer(
askgod_app,
name="askgod",
help="Commands for interacting with a live askgod server (github.com/nsec/askgod).",
)
app.add_typer(check_app)
app.add_typer(deploy_app)
app.add_typer(destroy_app)
app.add_typer(flags_app)
app.add_typer(services_app)
app.add_typer(generate_app)
app.add_typer(deploy_app)
app.add_typer(init_app)
app.add_typer(list_app)
app.add_typer(new_app)
app.add_typer(redeploy_app)
app.add_typer(check_app)
app.add_typer(services_app)
app.add_typer(stats_app)
app.add_typer(list_app)
app.add_typer(validate_app)
app.add_typer(version_app)


Expand Down
6 changes: 6 additions & 0 deletions ctf/askgod/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import typer

from ctf.askgod.stats import app as stats_app

app = typer.Typer()
app.add_typer(stats_app)
Loading
Loading