salesforce/policy_sentry

Shell completion not working?

Closed this issue · 3 comments

Shell completion produces no shell completion code:

> which policy_sentry
/home/linuxbrew/.linuxbrew/bin/policy_sentry

> policy_sentry --version
policy_sentry, version 0.12.15

> $(_POLICY_SENTRY_COMPLETE=source policy_sentry)
# empty output

Is it only me?

Bump 🆙

hey @yermulnik thanks for the reminder.

I checked and click's latest major version changed the way auto complete works. I'll adjust the docs, but here is the way to do it now

for bash

eval "$(_POLICY_SENTRY_COMPLETE=bash_source policy_sentry)"

and for zsh

eval "$(_POLICY_SENTRY_COMPLETE=zsh_source policy_sentry)"

Thanks you. Can confirm it works with this change 👍🏻