first pass of merging in warp (doesn't build)
This commit is contained in:
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Run a local `warp_tui` build.
|
||||
#
|
||||
# Selects the internal `local` channel when the `warp-channel-config` generator
|
||||
# is available (mirroring `./script/run`), otherwise falls back to the OSS
|
||||
# channel so contributors without repo access can still run the TUI. Unlike the
|
||||
# GUI `./script/run`, the TUI is a console binary, so there is no `.app` bundle
|
||||
# step — it just runs the appropriate `cargo` binary.
|
||||
#
|
||||
# Extra arguments are forwarded to `cargo run` (e.g. `--release`); use `--` to
|
||||
# pass arguments through to the binary itself.
|
||||
|
||||
set -e
|
||||
|
||||
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")"/.. && pwd)"
|
||||
cd "${REPO_ROOT}"
|
||||
|
||||
./script/install_channel_config || echo "Skipping internal channel config installation (no repo access)."
|
||||
|
||||
if command -v warp-channel-config &>/dev/null; then
|
||||
BIN="warp-tui"
|
||||
CHANNEL="local"
|
||||
else
|
||||
BIN="warp-tui-oss"
|
||||
CHANNEL="oss"
|
||||
fi
|
||||
|
||||
echo "Running cargo run -p warp_tui --bin ${BIN} (channel: ${CHANNEL})"
|
||||
exec cargo run -p warp_tui --bin "${BIN}" "$@"
|
||||
Reference in New Issue
Block a user