Skip to content

Commit

Permalink
chore(examples): Add just recipe for resetting the examples (#24)
Browse files Browse the repository at this point in the history
Whenever the examples are run locally, the versions in the files change
causing unstaged changes.
To clean the examples, run `just examples::reset`
  • Loading branch information
AllexVeldman authored Aug 22, 2024
1 parent 19179ff commit a43db13
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/examples/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,10 @@ curl-list username token repository="http://localhost:8090/ghcr.io/allexveldman/
curl-download version username token repository="http://localhost:8090/ghcr.io/allexveldman/":
curl -vOJ -u {{username}}:{{token}} {{repository}}hello_world/hello_world-{{version}}.tar.gz
rm hello_world-{{version}}.tar.gz

# Undo changes in the examples to the most recent commit
reset:
git checkout -- \
./poetry/install/pyproject.toml \
./poetry/publish/poetry.toml \
./poetry/publish/pyproject.toml

0 comments on commit a43db13

Please sign in to comment.