Skip to content

Commit 4e39ed3

Browse files
authored
fix: replace deprecated -i with -o in 1password custom completions (#1148)
1 parent bd128cf commit 4e39ed3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

custom-completions/op/op-completions.nu

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1991,7 +1991,7 @@ def "nu completion duration" [ctx: string] {
19911991
}
19921992

19931993
def "nu completion tag" [] {
1994-
op item list --format json | from json | get tags -i | uniq | sort --ignore-case --natural
1994+
op item list --format json | from json | get tags -o | uniq | sort --ignore-case --natural
19951995
}
19961996

19971997
def "nu completion tags" [ctx: string] {
@@ -2108,15 +2108,15 @@ def "nu completion bool" [] {
21082108
}
21092109

21102110
def "nu completion account" [] {
2111-
op account list --format json | from json | select -i account_uuid email | rename value description | sort-by description --ignore-case --natural
2111+
op account list --format json | from json | select -o account_uuid email | rename value description | sort-by description --ignore-case --natural
21122112
}
21132113

21142114
def "nu completion document_item" [] {
2115-
op item list --format json | from json | where category == "DOCUMENT" | select -i id title | rename value description | sort-by description --ignore-case --natural
2115+
op item list --format json | from json | where category == "DOCUMENT" | select -o id title | rename value description | sort-by description --ignore-case --natural
21162116
}
21172117

21182118
def "nu completion item" [] {
2119-
op item list --format json | from json | select -i id title additional_information | rename value description
2119+
op item list --format json | from json | select -o id title additional_information | rename value description
21202120
| upsert description {|row| if ($row.additional_information | is-not-empty) and $row.additional_information != '' {$"($row.description) - ($row.additional_information)"} else {$row.description} }
21212121
| sort-by description --ignore-case --natural
21222122
| select value description

0 commit comments

Comments
 (0)