-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
45 lines (36 loc) · 1.57 KB
/
justfile
File metadata and controls
45 lines (36 loc) · 1.57 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
set dotenv-load := true
default:
@just --list
# Bootstrap templates into the current directory.
# Params: *args = zero or more profile names and/or ai-bootstrap options.
bootstrap *args:
./ai-bootstrap {{args}}
# Preview bootstrap operations without writing files.
# Params: *args = zero or more profile names and/or ai-bootstrap options.
bootstrap-dry-run *args:
./ai-bootstrap --dry-run {{args}}
# Overwrite existing target paths when they already exist.
# Params: *args = zero or more profile names and/or ai-bootstrap options.
bootstrap-force *args:
./ai-bootstrap --force {{args}}
# Copy files instead of symlinking (symlink mode is the default).
# Params: *args = zero or more profile names and/or ai-bootstrap options.
bootstrap-copy *args:
./ai-bootstrap --no-symlink {{args}}
# Print discovered profile names based on .roo/rules and docs_<profile> folders.
bootstrap-list-profiles:
./ai-bootstrap --list-profiles
# Generate command-prefix allowlists from the core config for all supported agents.
# Params: none.
allowlist-generate:
python3 scripts/generate-command-prefixes.py
# Verify generated command-prefix allowlists match the core config.
# Params: none.
allowlist-check:
python3 scripts/generate-command-prefixes.py --check
# Symlink ai-bootstrap into ~/.local/bin so it can be called from anywhere.
install-bootstrap:
mkdir -p "$HOME/.local/bin"
ln -sf "{{justfile_directory()}}/ai-bootstrap" "$HOME/.local/bin/ai-bootstrap"
@echo "Installed ai-bootstrap to $HOME/.local/bin/ai-bootstrap"
@echo "Ensure $HOME/.local/bin is in PATH."