.PHONY: help update-flux fetch-crds generate-models clean-models build check test ci fmt fmt-check clippy audit
help:
@echo "Flux TUI - Build and Maintenance Commands"
@echo ""
@echo "Usage: make [target]"
@echo ""
@echo "Targets:"
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " %-20s %s\n", $$1, $$2}'
fmt-check:
cargo fmt -- --check
clippy:
cargo clippy --lib --tests -- -D warnings -A clippy::too_many_arguments -A clippy::items-after-test-module -A clippy::type-complexity -A clippy::should-implement-trait -A renamed_and_removed_lints -A clippy::collapsible-if -A clippy::len-zero -A clippy::assertions-on-constants -A dead-code
test:
cargo test --lib --tests
test-integration:
cargo test --test crd_compatibility --test resource_registry --test model_compatibility --test field_extraction --test trace_tests --test graph_tests
audit:
cargo audit --ignore RUSTSEC-2024-0436
ci: fmt clippy audit test test-integration
build:
cargo build
build-release:
cargo build --release
check:
cargo check
fmt:
cargo fmt
update-flux:
@./scripts/update-flux.sh
fetch-crds:
@./scripts/fetch-crds.sh
generate-models:
@./scripts/generate-models.sh