-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
90 lines (68 loc) · 1.54 KB
/
justfile
File metadata and controls
90 lines (68 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# FILE: justfile - Task runner for ratatui-notifications
# VERSION: 1.1.0
# WCTX: Adding code generation feature
# CLOG: Added cookbook example recipes
# Default recipe: show available commands
default:
@just --list
# Run the interactive demo
demo:
cargo run --example demo
# Run the cookbook (curated recipes with code snippets)
cookbook:
cargo run --example cookbook
# Run all tests
test:
cargo test
# Run tests with output
test-verbose:
cargo test -- --nocapture
# Run a specific test
test-one TEST:
cargo test {{TEST}} -- --nocapture
# Check compilation without building
check:
cargo check
# Build the library
build:
cargo build
# Build in release mode
build-release:
cargo build --release
# Run clippy lints
lint:
cargo clippy -- -D warnings
# Format code
fmt:
cargo fmt
# Check formatting without modifying
fmt-check:
cargo fmt -- --check
# Run all quality checks (format, lint, test)
ci: fmt-check lint test
# Generate documentation
doc:
cargo doc --no-deps
# Open documentation in browser
doc-open:
cargo doc --no-deps --open
# Clean build artifacts
clean:
cargo clean
# Watch for changes and run tests
watch:
cargo watch -x test
# Watch for changes and run demo
watch-demo:
cargo watch -x 'run --example demo'
# Watch for changes and run cookbook
watch-cookbook:
cargo watch -x 'run --example cookbook'
# Show dependency tree
deps:
cargo tree
# Update dependencies
update:
cargo update
# FILE: justfile - Task runner for ratatui-notifications
# END OF VERSION: 1.1.0