1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-07-30 21:57:44 +00:00
nu_scripts/custom-completions/op
Auca Coyan 4fa48b3e60
🐛 fix some parser issues with type signatures (#1001)
When I updated nu to 101, the completions of poetry failed because of a
missing `:`
this
```nu
def "nu-complete poetry python-versions" [] nothing -> list<string> {
```
for this

```nu
def "nu-complete poetry python-versions" []: nothing -> list<string> {
```

Fixed a couple of places and some other parser issues
2024-12-26 09:28:18 -06:00
..
op-completions.nu 🐛 fix some parser issues with type signatures (#1001) 2024-12-26 09:28:18 -06:00
readme.md add op (1password cli) completions (#807) 2024-04-02 12:07:04 -05:00

1Password CLI completions

A Nushell extern definition and completers for 1Password CLI app op.

This module provides extern definitions for all of the op commands and their flags. It does not provide completions for the assignments argument ([<section>.]<field>[[<fieldType>]]=<value>) within the op item create and op item edit commands.

When prompting for some option values such as --vault or --group the extern completer will attempt to execute additional background op commands to retrieve possible values which may cause unexpected additional 1Password authentication prompts.

Usage

simply import the extern definitions with

use path/to/op-completions.nu * # don't forget the star `*`

or

source path/to/op-completions.nu

Once imported completions will be available for commands, flags, options, and some values as well. Display the commands by entering the → tab key in the command line after op or any of it's command options.