v0.4.0 12ae076

run.sh RawHistoryFolder

1#!/usr/bin/env bash
2set -euo pipefail
3cd "$(dirname "$0")/../.."
4
5TAPE="${1:-demo.tape}"
6COMPOSE_FILE="scripts/demo/compose.yaml"
7install -d -m 0777 scripts/demo/out
8# Demo containers use a rootless subuid mapping, so reset generated state
9# from the same container identity rather than relying on host ownership.
10docker run --rm --entrypoint sh -v "$PWD/scripts/demo/out:/out" vev-demo -c 'rm -rf /out/local && mkdir -m 0777 /out/local'
11
12compose() {
13	docker compose -f "$COMPOSE_FILE" "$@"
14}
15
16cleanup() {
17	compose down -v --remove-orphans >/dev/null 2>&1 || true
18}
19trap cleanup EXIT
20
21compose up -d remote
22
23ready=""
24for _ in $(seq 60); do
25	if compose run --rm --entrypoint ssh client remote true >/dev/null 2>&1; then
26		ready=yes
27		break
28	fi
29	sleep 0.5
30done
31if [ -z "$ready" ]; then
32	echo "error: sshd on the remote container never accepted a connection" >&2
33	compose logs remote >&2 || true
34	exit 1
35fi
36
37start_remote_session() {
38	local name=$1 scene=$2
39	if ! compose exec -u demo -T remote env VEV=demo-bootstrap SHELL=/usr/local/bin/demo-shell VEV_DEMO_SCENE="$scene" vev new "$name"; then
40		echo "error: could not create remote session '$name'" >&2
41		return 1
42	fi
43	if ! compose exec -u demo -T remote vev ls | grep -q "^$name"; then
44		echo "error: remote session '$name' was not retained" >&2
45		compose exec -u demo -T remote vev ls >&2 || true
46		return 1
47	fi
48}
49
50start_remote_session work remote-deploys
51start_remote_session ticker remote-ticker
52
53compose run --rm --entrypoint vev client host add remote
54compose run --rm client "/tape/$TAPE"

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 12

Tags 11

↑↓ moveenter openesc close