semvec/pypi-packages huggingface dataset:
aws-razor 2.27.45
Alternative CLI frontend for aws-cli completions
Requires Python: >=3.9

# `aws-razor`

*At last, my arm is complete again!*

This tool is an alternative to awscli's built-in completion prompt. It uses
the same auto completion machinery from the CLI's code, but simply writes the
completion results as plain JSON objects, one per line. It is primarily intended
for completion frontends that accept more context than just the completion text,
such as descriptions, e.g. nushell; although, it can be used for any completion
frontend.

## Usage

For Nushell,

```nushell
def "nu-complete aws" [context: string, pos: int] {
  aws-razor --command-line $context --position $pos
  | from json --objects
  | each {|completion|
    {
      value: $completion.text,
      description: $completion.display_meta,
    }
  }
}

export extern "aws" [
  ...command: string@"nu-complete aws"
]
```