Fish completions cause crash
Using tab-completion in fish causes the shell to execute the contents of the justfile. I have installed through homebrew.
```just
set dotenv-load
set shell := ["bash", "-uc"]
export PATH := "./node_modules/.bin:" + env_var('PATH')
F_NAME := "xxxxxxx-app"
_default:
@echo "Xxxx xxxxx"
@echo ""
@just --list --unsorted --list-heading ''
## ---------------------------------------------------------------------------------------------
## Dev
# Run frontend just task
[group('dev')]
f TASK='' *FLAGS:
@just -f frontend/justfile -d frontend {{TASK}} {{FLAGS}}
# Run backend just task
[group('dev')]
b TASK='' *FLAGS:
@just -f backend/justfile -d backend {{TASK}} {{FLAGS}}
# Run a tool's just task (e.g. just t ss capture)
[group('dev')]
t TOOL TASK='' *FLAGS:
#!/usr/bin/env bash
case "{{TOOL}}" in
sc) dir="store-screenshots" ;;
*) dir="{{TOOL}}" ;;
esac
just -f "tools/${dir}/justfile" -d "tools/${dir}" {{TASK}} {{FLAGS}}
## ---------------------------------------------------------------------------------------------
## Setup
# Install all workspace dependencies and tools
[group('setup')]
setup:
proto use
pnpm install
@just b sync
## ---------------------------------------------------------------------------------------------
## Quality
# Format all workspace files
[group('quality')]
format:
oxfmt "**/*.{json,md,js,jsx,ts,tsx,css,scss}"
oxlint --fix "frontend/" "tools/"
@just b format
# Lint all workspace files
[group('quality')]
lint:
oxlint "frontend/" "tools/"
@just b lint
## ---------------------------------------------------------------------------------------------
## Maintenance
# Clean all caches and build artifacts
[group('maintenance')]
cleanup:
del-cli \
"**/.ruff_cache" \
"**/.pytest_cache" \
"**/.mypy_cache" \
"**/__pycache__" \
"**/*.egg-info" \
"**/node_modules/.cache" \
"**/.turbo" \
"frontend/.expo" \
"frontend/android" \
"frontend/ios" \
"frontend/.env.local" \
"frontend/*.apk" \
"frontend/*.aab" \
"frontend/*.ipa" \
"backend/.coverage" \
"backend/htmlcov" \
"backend/.uv_cache"
EXPO_VERSION := "^54"
# Upgrade dependencies safely
[group('maintenance')]
upgrade:
@echo -e "Starting safe dependency upgrades... \n"
@echo -e "\e[45;30m Updating backend \e[0m \n"
@echo -e "\e[43;30m WARN \e[0m No updater configured yet \n"
@echo -e "\e[45;30m Updating frontend \e[0m \n"
@echo -e "\e[44;30m INFO \e[0m Running expo update \n"
pnpm update -r "expo@{{EXPO_VERSION}}"
pnpm --filter {{F_NAME}} exec expo install --fix
pnpm --filter {{F_NAME}} exec expo-doctor \
|| echo -e "\e[41;30m ERRR \e[0m Fails anyway \n"
@echo -e "\e[44;30m INFO \e[0m Running recursive update \n"
pnpm update --recursive
@echo -e "\e[44;30m INFO \e[0m End phase \n"
pnpm outdated --recursive --compatible
pnpm dedupe
@echo -e "\n\e[42;30m SUCS \e[0m Done 🎉 \n"
# Create LLM compressed repo files
[group('maintenance')]
repo-pack:
@pnpx repomix --truncate-base64 --compress --remove-empty-lines --output repomix-frontend.xml --ignore="locales/**,**/lottie/**" frontend/
@pnpx repomix --truncate-base64 --compress --remove-empty-lines --output repomix-backend.xml --ignore="locale/**" backend/
```
关闭于 2026-04-15 11 条评论