Skip to content

Commit c105898

Browse files
chore: Run tape generation from repo root and update notify
- Fix generate.sh to run from repo root with absolute paths - Update tape files to use repo-relative paths instead of ../.. - Remove webm output from demo tape - Update notify dependency from 7.0 to 8.2 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 2a0bd68 commit c105898

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ crossterm = "0.29"
1818
tokio = { version = "1.43", features = ["full"] }
1919

2020
# File watching
21-
notify = "7.0"
21+
notify = "8.2"
2222

2323
# Serialization
2424
serde = { version = "1.0", features = ["derive"] }

docs/images/demo.gif

2.25 KB
Loading

docs/images/quickstart.gif

246 KB
Loading

docs/tapes/demo.tape

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# VHS Demo Tape for charmer
2-
# Run with: vhs demo.tape
2+
# Run from repo root: vhs docs/tapes/demo.tape
33

4-
Output ../images/demo.gif
5-
Output ../images/demo.webm
4+
Output docs/images/demo.gif
65

76
Set Shell "bash"
87
Set FontSize 14
@@ -28,7 +27,7 @@ Enter
2827
Show
2928

3029
# Start charmer with test data
31-
Type "charmer ../../tests/pipelines/simple"
30+
Type "charmer tests/pipelines/simple"
3231
Enter
3332
Sleep 2s
3433

docs/tapes/generate.sh

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
11
#!/usr/bin/env bash
22
set -euo pipefail
33

4+
# Change to repo root directory
45
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
56
ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)"
6-
77
cd "$ROOT_DIR"
88

99
# Install charmer binary
1010
cargo install --path crates/charmer
1111

1212
# Clean and start the test pipeline
1313
pixi run clean-test
14-
cd tests/pipelines/simple
15-
snakemake --cores 2 &
14+
snakemake --cores 2 --snakefile tests/pipelines/simple/Snakefile --directory tests/pipelines/simple &
1615
PIPELINE_PID=$!
1716

1817
# Wait for jobs to register
1918
sleep 3
2019

21-
# Generate tapes
22-
cd "$SCRIPT_DIR"
23-
vhs demo.tape
24-
vhs quickstart.tape
20+
# Generate tapes from repo root
21+
vhs docs/tapes/demo.tape
22+
vhs docs/tapes/quickstart.tape
2523

2624
# Cleanup
2725
kill $PIPELINE_PID 2>/dev/null || true
2826
wait $PIPELINE_PID 2>/dev/null || true
2927

30-
echo "Tapes generated in ../images/"
28+
echo "Tapes generated in docs/images/"

docs/tapes/quickstart.tape

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# VHS Quickstart Tape for charmer
2-
# Run with: vhs quickstart.tape
2+
# Run from repo root: vhs docs/tapes/quickstart.tape
33

4-
Output ../images/quickstart.gif
4+
Output docs/images/quickstart.gif
55

66
Set Shell "bash"
77
Set FontSize 16
@@ -14,15 +14,11 @@ Type "# Quick Start with charmer"
1414
Enter
1515
Sleep 1s
1616

17-
Type "cd ../../tests/pipelines/simple"
18-
Enter
19-
Sleep 500ms
20-
2117
Type "# Start monitoring"
2218
Enter
2319
Sleep 500ms
2420

25-
Type "charmer"
21+
Type "charmer tests/pipelines/simple"
2622
Enter
2723
Sleep 3s
2824

0 commit comments

Comments
 (0)