Repository navigation
v1.2.0
·
22 commits
to main
since this release
Immutable
release. Only release title and notes can be modified.
Added
- When you answered any prompts,
activate,extendanddeactivateask you to confirm the request before sending it. Runs driven entirely by flags,--dry-runand--validate-onlydon't ask. ACCESSIBLE=1switches to plain line-based prompts: a numbered list to pick from and typed answers, for screen readers or if you prefer them to the interactive UI.- A spinner on stderr while azpim signs in, fetches assignments or reads a role's policy, shown only when stdin and stderr are terminals (not with
ACCESSIBLE=1orTERM=dumb). Ctrl-C while it spins exits with status 130. - Requests that only read from Azure time out: each attempt after 30 seconds, retried up to 3 times, so one Azure never answers fails after about two minutes with
Azure didn't respond …instead of hanging. Activating, extending and deactivating are exempt, so a slow request is never resent as a duplicate. - Every command's
--helpnow ends with links to the documentation and the issue tracker.
Changed
- Interactive prompts now use huh v2 instead of the unmaintained promptui. Press
/to filter the role picker. Ctrl-C cancels quietly, exiting with status 130 instead of printingError: selection cancelled. Prompts draw on stderr, so-o jsonoutput stays clean. Each answer stays on screen after you press Enter, and picker columns line up however long the role names are. - When stdin isn't a terminal, azpim no longer tries to prompt. It exits with an error naming the missing flag, e.g.
--role is required when not running in a terminal. deactivate --allasks for confirmation with the same prompts. Without a terminal it now fails with--yes is required when not running in a terminalinstead of silently deactivating nothing.- Tables from
eligible,activeandrequestsare drawn with Lip Gloss v2 instead of tablewriter. They look the same, and tablewriter and eight modules only it used are gone. In a terminal too narrow for a table, long cells now wrap within their column, at word boundaries, instead of the terminal breaking whole lines; piped output still has one row per line. - When
eligible,activeorrequestsfind nothing, the table output now writes nothing to stdout and prints the message (No active assignments found.and so on) on stderr; the exit status is still 0 and-o jsonstill prints[]. Scripts that matched that message on stdout should check for empty output instead. azpim --versionandazpim versionnow print the same line,azpim 1.2.0: the program name, then the version without av(it wasazpim version v1.2.0andv1.2.0). The version is everything after the last space, per the GNU--versionconvention.
Removed
--humanoneligibleandrequests, where it never did anything (neither has a time-remaining column). It still works onactive. Scripts that pass it to those commands now getunknown flag: --human.
Fixed
- Commands now reject unexpected arguments instead of silently ignoring them. For example,
azpim activate Ownerused to ignoreOwnerand open the role picker; it now fails withunknown command "Owner"(use--role Owner). - Table colors now respect
NO_COLORand are only used when the output itself is a terminal.