Skip to content

Commit b4a7e24

Browse files
authored
Merge pull request #91 from mrjones2014/bot/vimdoc/master
chore: generated vimdoc
2 parents 6e4642c + f1cd650 commit b4a7e24

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

doc/op.txt

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*op.txt* Last change: 2024 May 28
1+
*op.txt* Last change: 2025 August 19
22

33
==============================================================================
44
Table of Contents *op-table-of-contents*
@@ -266,9 +266,10 @@ COMMANDS *op-commands*
266266
All commands are also available as a Lua API, see API <#api>. Additionally
267267
there are two utility methods for grabbing secrets to use in scripting:
268268

269-
- `require('op').get_secret(item_reference: string): string|nil, string|nil`
270-
- `require('op').get_secret_async(item_reference: string, callback:
271-
fun(secret: string|nil, stderr: string|nil))`
269+
- `require('op').get_secret(item_reference: string, account: string|nil):
270+
string|nil, string|nil`
271+
- `require('op').get_secret_async(item_reference: string, account: string|nil,
272+
callback: fun(secret: string|nil, stderr: string|nil))`
272273
If the CLI integration is enabled in the 1Password desktop app, the field
273274
action menu will have an item to "Copy secret reference". You can also go to
274275
Settings -> Developer and "Show 1Password Developer experience" to enable the
@@ -403,9 +404,10 @@ All commands are also available as a Lua API as described below:
403404
Additionally there are two utility methods for grabbing secrets to use in
404405
scripting:
405406

406-
- `require('op').get_secret(item_reference: string): string|nil, string|nil`
407-
- `require('op').get_secret_async(item_reference: string, callback:
408-
fun(secret: string|nil, stderr: string|nil))`
407+
- `require('op').get_secret(item_reference: string, account: string|nil):
408+
string|nil, string|nil`
409+
- `require('op').get_secret_async(item_reference: string, account: string|nil,
410+
callback: fun(secret: string|nil, stderr: string|nil))`
409411
Additionally, part of `op.nvim`'s design includes complete bindings to the CLI
410412
that you can use for scripting with Lua. This API is available in the `op.api`
411413
module. This module returns a table that matches the hierarchy of the

0 commit comments

Comments
 (0)