-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
66 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule falco_blueprint_basic
updated
from 0f5d4a to 2f8a63
Submodule falco_blueprint_basic_bootstrap
updated
from 670886 to e32925
Submodule falco_blueprint_basic_pico
updated
10 files
Submodule falco_twind
added at
2f8a63
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
default := "blueprints/falco_blueprint_basic" | ||
|
||
# List all available commands | ||
_default: | ||
@just --list | ||
|
||
just default: | ||
cd {{ default }} | ||
|
||
# Run git pull in every blueprints | ||
pull: | ||
#!/usr/bin/env sh | ||
for dir in blueprints/*; do | ||
if [ -d "$dir" ]; then | ||
cd "$dir" | ||
git fetch --all | ||
git pull | ||
cd - | ||
fi | ||
done | ||
# Set the upstream remote | ||
set-remote: | ||
#!/usr/bin/env sh | ||
for dir in blueprints/*; do | ||
if [ -d "$dir" ]; then | ||
if [ "$dir" = "{{ default }}" ]; then | ||
continue | ||
fi | ||
cd "$dir" | ||
git remote add upstream "git@github.com:Tobi-De/falco_blueprint_basic.git" | ||
cd - | ||
fi | ||
done | ||
|
||
merge: | ||
#!/usr/bin/env sh | ||
for dir in blueprints/*; do | ||
if [ -d "$dir" ]; then | ||
if [ "$dir" = "{{ default }}" ]; then | ||
continue | ||
fi | ||
cd "$dir" | ||
git merge upstream/main | ||
cd - | ||
fi | ||
done | ||
|
||
push: | ||
#!/usr/bin/env sh | ||
for dir in blueprints/*; do | ||
if [ -d "$dir" ]; then | ||
echo "$(basename $dir)" | ||
cd "$dir" | ||
git pull | ||
git push | ||
cd - | ||
fi | ||
done |