Skip to content

Commit

Permalink
fix curly braces in Justfile (#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuadavidthomas authored Aug 2, 2024
1 parent f325cdb commit 0631f6c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Fixed

- Fixed arguments surrounded by curly braces in `Justfile` template by wrapping with `{% raw %}{% endraw %}` Jinja2 code.

## [2024.42]

### Added
Expand Down
10 changes: 5 additions & 5 deletions src/django_twc_project/Justfile.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ lock:

# Print out the logs of all Docker containers, optionally specifying a container to focus on
logs *ARGS:
@just docker logs {{ ARGS }}
@just docker logs {% raw %}{{ ARGS }}{% endraw %}

# Run Django migrations
migrate *ARGS:
@just dj migrate {{ ARGS }}
@just dj migrate {% raw %}{{ ARGS }}{% endraw %}

alias mm := makemigrations

# Generate Django migrations
makemigrations *ARGS:
@just dj makemigrations {{ ARGS }}
@just dj makemigrations {% raw %}{{ ARGS }}{% endraw %}

# Run a Django management command
manage *COMMAND:
@just dj manage {{ COMMAND }}
@just dj manage {% raw %}{{ COMMAND }}{% endraw %}

# Refresh local development environment
refresh:
Expand Down Expand Up @@ -113,7 +113,7 @@ stop:

# Follow the logs of all Docker containers, optionally specifying a container to focus on
tail *ARGS:
@just docker tail {{ ARGS }}
@just docker tail {% raw %}{{ ARGS }}{% endraw %}

# Run entire test suite, including generating code coverage
test:
Expand Down

0 comments on commit 0631f6c

Please sign in to comment.