Skip to content

Commit af1e8fd

Browse files
authored
Merge pull request #40 from nsec/promptbuild
- Prompt for build container in `ctf new`
2 parents a3f5cba + 1443cfc commit af1e8fd

File tree

4 files changed

+166
-4
lines changed

4 files changed

+166
-4
lines changed

ctf/new.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def new(
5252
typer.Option(
5353
"--with-build",
5454
help="If a build container is required.",
55+
prompt="Is a build container required?",
5556
),
5657
] = False,
5758
) -> None:

ctf/templates/init/.deploy/cleanup.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
[ ! -e /run/systemd/resolve/resolv.conf ] && exit 0
1111
rm -f /etc/resolv.conf || true
1212
cat /run/systemd/resolve/resolv.conf > /etc/resolv.conf
13-
when: 'nsec_production | default(False)'
13+
when: nsec_production | default(False) | bool
1414
changed_when: true
1515

1616
- name: Mask most systemd units
@@ -123,7 +123,7 @@
123123
systemd-udevd.service; do
124124
ln -s /dev/null /etc/systemd/system/${i} || true
125125
done
126-
when: 'nsec_production | default(False)'
126+
when: nsec_production | default(False) | bool
127127
changed_when: true
128128

129129
- name: Remove all cron jobs

poetry.lock

Lines changed: 162 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies = [
1919
"typer==0.16.0",
2020
"pydantic"
2121
]
22-
version = "3.1.1"
22+
version = "3.2.0"
2323
classifiers = [
2424
"Programming Language :: Python :: 3",
2525
"Operating System :: OS Independent",

0 commit comments

Comments
 (0)