fix(1password)!: remove v1 support (#13507)

BREAKING CHANGE: `op` v1 support has been removed. Please migrate to v2
if you are affected by this change.
This commit is contained in:
Carlo Sala
2026-01-08 12:02:40 +01:00
committed by GitHub
parent ed21aa1961
commit 871d4b9816
2 changed files with 0 additions and 51 deletions

View File

@@ -6,14 +6,4 @@ function _opswd() {
[[ -z "$services" ]] || compadd -a -- services
}
# TODO: 2022-03-26: Remove support for op CLI 1
autoload -Uz is-at-least
is-at-least 2.0.0 $(op --version) || {
function _opswd() {
local -a services
services=("${(@f)$(op list items --categories Login 2>/dev/null | op get item - --fields title 2>/dev/null)}")
[[ -z "$services" ]] || compadd -a -- services
}
}
_opswd "$@"