Skip to content

Commit 9b4499b

Browse files
committed
Polish OAR make help output
1 parent 35edec7 commit 9b4499b

1 file changed

Lines changed: 11 additions & 7 deletions

File tree

projects/openshell-agent-runner/Makefile

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,17 @@ endif
2121
.PHONY: help sync test format-check lint typecheck check build clean publish
2222

2323
help: ## Show available targets and configurable variables.
24-
@awk 'BEGIN {FS = ":.*## "}; /^[a-zA-Z0-9_.-]+:.*## / {printf " %-12s %s\n", $$1, $$2}' $(MAKEFILE_LIST)
25-
@printf "\nVariables:\n"
26-
@printf " VERSION=X.Y.Z Required package version for publish\n"
27-
@printf " DRY_RUN=1 Validate a release without tagging or uploading\n"
28-
@printf " ALLOW_NON_MAIN=1 Permit release validation or publishing off main\n"
29-
@printf " RETRY_ARTIFACT=... Retry a missing wheel, sdist, or both after a failed upload\n"
30-
@printf " PYTEST_ARGS=... Extra pytest paths or flags\n"
24+
@printf "\033[1;36mOpenShell Agent Runner\033[0m\n"
25+
@printf "\n\033[1;33m🛠 Development\033[0m\n"
26+
@awk 'BEGIN {FS = ":.*## "}; /^[a-zA-Z0-9_.-]+:.*## / && $$1 != "publish" {printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
27+
@printf "\n\033[1;33m📦 Release\033[0m\n"
28+
@awk 'BEGIN {FS = ":.*## "}; $$1 == "publish" {printf " \033[36m%-14s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
29+
@printf "\n\033[1;33m⚙ Configuration\033[0m\n"
30+
@printf " \033[32m%-20s\033[0m %s\n" "PYTEST_ARGS=..." "Extra pytest paths or flags"
31+
@printf " \033[32m%-20s\033[0m %s\n" "VERSION=X.Y.Z" "Required package version for publish"
32+
@printf " \033[32m%-20s\033[0m %s\n" "DRY_RUN=1" "Validate a release without tagging or uploading"
33+
@printf " \033[32m%-20s\033[0m %s\n" "ALLOW_NON_MAIN=1" "Permit release validation or publishing off main"
34+
@printf " \033[32m%-20s\033[0m %s\n" "RETRY_ARTIFACT=..." "Retry a missing wheel, sdist, or both after a failed upload"
3135

3236
sync: ## Install locked runtime and development dependencies.
3337
$(UV) sync --locked

0 commit comments

Comments
 (0)