set shell := ["/usr/bin/env", "bash", "-euo", "pipefail", "-c"]

[private]
default:
	@just --choose

# Run all tests
test:
  nix flake check

# Lint all source code
lint:
 echo FIXME: Add linter(s) here

# Format all source code
fmt:
 nix fmt

# Update all dependencies
update: update-nix-pkgs 

# Update nix flake packages
update-nix-pkgs:
  nix flake update

# Run local development
dev $OTEL_SERVICE_NAME="my-project":
  watchexec --clear --restart --stop-signal INT --debounce 300ms -- nix run .