clan-core/pkgs/clan-vm-manager/demo.sh
a-kenji 91c36a33da
All checks were successful
checks-impure / test (pull_request) Successful in 2m0s
checks / test (pull_request) Successful in 2m31s
Fix demo script
The `--wayland` cli option is now a module option.
2024-02-13 16:15:36 +01:00

30 lines
550 B
Bash
Executable File

#!/usr/bin/env bash
set -eux -o pipefail
rm -r ~/.config/clan
if [ -z "$1" ]; then
echo "Usage: $0 <democlan>"
exit 1
fi
democlan="$1"
clan history add "clan://$democlan#syncthing-peer1"
clan history add "clan://$democlan#syncthing-peer2"
clan history add "clan://$democlan#moonlight-peer1"
clan history add "clan://$democlan#moonlight-peer2"
clear
cat << EOF
Open up this link in a browser:
"clan://$democlan#syncthing-introducer"
EOF
cat << EOF
Execute this command to show waypipe windows:
$ clan --flake $democlan vms run wayland
EOF