Skip to content

Commit

Permalink
make-gui.sh: add sync command to update ergogen with new footprints
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrey Elizarov committed May 14, 2024
1 parent e99d8ce commit 6f47ed0
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion make-gui.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,22 @@ ergogen_daemon() {
ergogen-gui:latest
}

ergogen_update_footprints() {
docker exec -it ergogen-gui npm run build-ergogen
}

main() {
[ $# -eq 0 ] && err "available subcommands: build, run, daemon" 2
[ $# -eq 0 ] && err "available subcommands: build, run, daemon, sync" 2

local cmd="$1"; shift

case $cmd in
"build" | "run" | "daemon")
$"ergogen_$cmd" "$@"
;;
"sync")
ergogen_update_footprints
;;
*)
err "command $cmd is not supported" 3
;;
Expand Down

0 comments on commit 6f47ed0

Please sign in to comment.