16 lines
No EOL
443 B
Bash
Executable file
16 lines
No EOL
443 B
Bash
Executable file
#!/bin/bash
|
|
DB_HASH=$(spacetime list 2>/dev/null | tail -1)
|
|
func=$1;
|
|
shift;
|
|
|
|
if [[ "$func" == "publish" ]]; then
|
|
zig build -freference-trace=100 || exit 1
|
|
spacetime logout
|
|
spacetime login --server-issued-login local
|
|
spacetime publish -y --server local --bin-path=zig-out/bin/stdb-zig-helloworld.wasm
|
|
DB_HASH=$(spacetime list 2>/dev/null | tail -1)
|
|
spacetime logs $DB_HASH
|
|
exit $?
|
|
fi
|
|
|
|
spacetime "$func" $DB_HASH "$@" |