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>
This commit is contained in:
1 parent
65e5dc966f
commit
ec21287549
11 files changed
+236
-213
No files matched your search
@@ -10,6 +10,10 @@ build:
|
||||
test:
|
||||
moon test --target native
|
||||
|
||||
# Build orbit and install it to ~/.local/bin.
|
||||
# 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
|
||||
Reference in new issue
Block a user