Files
orbit/justfile
nandiandClaude Haiku 5.5 ec21287549 Use moonbitlang/async for process and file IO
Process execution and file access go through @process and @fs. The spinner
is a background task in a task group, and the C stub keeps only getenv,
exit, isatty, symlink and stderr output. orbit info reads installed state
only, and it records and restores package descriptions. just install adds
Orbit's bin directory to ~/.bashrc once.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
2026-11-26 22:40:18 -08:00

20 lines
554 B
Makefile

# List recipes.
default:
@just --list
# Build the release binary.
build:
moon build --target native --release
# Run the unit tests.
test:
moon test --target native
# Install Orbit to ~/.local/bin and set up its package PATH for Bash.
install: build
install -Dm755 _build/native/release/build/main/main.exe "$HOME/.local/bin/orbit"
@line='export PATH="${ORBIT_ROOT:-$HOME/.orbit}/bin:$PATH"'; rc="$HOME/.bashrc"; \
if [ ! -f "$rc" ] || ! grep -Fqx -- "$line" "$rc"; then \
printf '\n%s\n' "$line" >> "$rc"; \
fi