Skip to content

Colorize hex.policy and cooldown output#1189

Merged
ericmj merged 1 commit into
mainfrom
colorize-policy-and-cooldown-output
Jun 17, 2026
Merged

Colorize hex.policy and cooldown output#1189
ericmj merged 1 commit into
mainfrom
colorize-policy-and-cooldown-output

Conversation

@ericmj

@ericmj ericmj commented Jun 17, 2026

Copy link
Copy Markdown
Member

mix hex.policy show and why now highlight the active policy with ANSI colors: the policy name and rule values, ALLOWED/BLOCKED status, and per-reason colors (advisory, retirement, cooldown). The "Versions filtered by cooldown" summary printed during mix deps.get highlights the package, version, and eligible date.

Also shorten the cooldown summary line to "PKG VSN — eligible DATE", dropping the redundant "published N days ago" — the eligible date is the actionable part.

mix hex.policy show and why now highlight the active policy with ANSI colors: the policy name and rule values, ALLOWED/BLOCKED status, and per-reason colors (advisory, retirement, cooldown). The "Versions filtered by cooldown" summary printed during mix deps.get highlights the package, version, and eligible date.

Also shorten the cooldown summary line to "PKG VSN — eligible DATE", dropping the redundant "published N days ago" — the eligible date is the actionable part.

@maennchen maennchen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@ericmj

ericmj commented Jun 17, 2026

Copy link
Copy Markdown
Member Author

New colors can be seen in screenshot here: hexpm/hexpm#1664.

@ericmj ericmj merged commit 101f697 into main Jun 17, 2026
22 checks passed
@ericmj ericmj deleted the colorize-policy-and-cooldown-output branch June 17, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants