Skip to content

Commit 9588305

Browse files
committed
Fix clean command; improve comments
1 parent dccc4d8 commit 9588305

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

template/justfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# On Windows the bash shell that comes with Git for Windows should be used.
1+
# On Windows the "sh" shell that comes with Git for Windows should be used.
22
# If it is not on path, give the path to the executable in the following line.
33
#set windows-shell := ["C:/Program Files/Git/usr/bin/sh", "-cu"]
44

@@ -170,7 +170,7 @@ _git-add:
170170

171171
# Commit files to git
172172
_git-commit:
173-
git commit -m 'chore: make setup was run' -a
173+
git commit -m 'chore: just setup was run' -a
174174

175175
# Show git status
176176
_git-status:
@@ -186,7 +186,7 @@ _clean_project:
186186
shutil.rmtree(d, ignore_errors=True)
187187
# remove the generated python data model
188188
for d in pathlib.Path("{{pymodel}}").iterdir():
189-
if str(d) == "__init__.py":
189+
if d.name == "__init__.py":
190190
continue
191191
print(f'removing "{d}"')
192192
if d.is_dir():
@@ -210,4 +210,5 @@ _ensure_docdir:
210210
_ensure_examples_output:
211211
-mkdir -p examples/output
212212

213+
# Include project-specific recipes
213214
import "project.justfile"

0 commit comments

Comments
 (0)