Skip to content

Add challenge creation script to init command outputs#86

Open
detjensrobert wants to merge 12 commits intomainfrom
dr/chal-script
Open

Add challenge creation script to init command outputs#86
detjensrobert wants to merge 12 commits intomainfrom
dr/chal-script

Conversation

@detjensrobert
Copy link
Copy Markdown
Contributor

Adds additional files to the outputs generated by init:

  • a basic README
  • scripts/new-chal.py, a basic Python script to create a new challenge with some basic info and example config.

The script currently only creates a basic challenge.yaml and does not create any other files in the challenge directory. Should this also bootstrap an example template container for TCP/web challenges, or is only the config fine for this?

Resolves #72.

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
This is complete enough it can be moved into the source tree and get
bundled up into the cli.

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Figment's Jail test helper returns a large Error result type, which Clippy
does not like. We can't really do anything to fix that.

Signed-off-by: Robert Detjens <github@detjens.dev>
This prompts for overwriting each file separately so that some, all, or none
of the bundled files can be written out.

Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Signed-off-by: Robert Detjens <github@detjens.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include script to create new challenge in repo template from init

1 participant