Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit 7255c8b

Browse files
committed
fix(template-dev): 🐛 remove username questions
1 parent 24784b1 commit 7255c8b

2 files changed

Lines changed: 0 additions & 13 deletions

File tree

copier.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ _templates_suffix: .jinja
88
_jinja_extensions:
99
- copier_templates_extensions.TemplateExtensionLoader
1010
- extensions.py:CurrentYearExtension
11-
- extensions.py:CurrentUserExtension
1211
- extensions.py:GitExtension
1312
- extensions.py:SlugifyExtension
1413
_skip_if_exists:
@@ -127,8 +126,3 @@ docker_base_image:
127126
type: str
128127
help: Base image for the dev container. Edit Dockerfile.dev if your image is not ubuntu-based or have no python installed.
129128
default: "python:3.11"
130-
131-
current_username:
132-
type: str
133-
help: Username to use in the Dev container.
134-
default: "{{ current_user }}"

extensions.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
import re
32
import subprocess
43
import unicodedata
@@ -42,9 +41,3 @@ class CurrentYearExtension(Extension):
4241
def __init__(self, environment):
4342
super().__init__(environment)
4443
environment.globals["current_year"] = date.today().year
45-
46-
47-
class CurrentUserExtension(Extension):
48-
def __init__(self, environment):
49-
super().__init__(environment)
50-
environment.globals["current_user"] = os.getlogin()

0 commit comments

Comments
 (0)