Skip to content

Commit

Permalink
Merge pull request #9 from dreadnode/fix/eng-180-cli-agentcliinit-tem…
Browse files Browse the repository at this point in the history
…plate-prompt-should-use-templatevalue-as

fix: using default=template.value for template prompt
  • Loading branch information
evilsocket authored Nov 19, 2024
2 parents 73f489b + ba9b718 commit 99bdcee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dreadnode_cli/agent/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def init(

print()
project_name = Prompt.ask("Project name?", default=name or directory.name)
template = Template(Prompt.ask("Template?", choices=[t.value for t in Template], default=template))
template = Template(Prompt.ask("Template?", choices=[t.value for t in Template], default=template.value))

directory.mkdir(exist_ok=True)

Expand Down

0 comments on commit 99bdcee

Please sign in to comment.