Alternative CLI frontend for aws-cli completions
Project description
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,
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"
]
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aws_razor-2.27.45.tar.gz.
File metadata
- Download URL: aws_razor-2.27.45.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2acda440d6d9ff3b5cfebebdd8f193cb8acd225bbfd1d574559e9ce3691921f
|
|
| MD5 |
da3afde1a025ad18731c91b987cc2815
|
|
| BLAKE2b-256 |
444eed3169f19b3bcb9876b74f23200590a3284ae0fefcdeb7aa6141f0ce66e9
|
File details
Details for the file aws_razor-2.27.45-py3-none-any.whl.
File metadata
- Download URL: aws_razor-2.27.45-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c0f948d7d80986cad70623d4f6e3868fa240c01352f062e10235c95f7c1667b6
|
|
| MD5 |
f0478b1e3fcec69b82d50e0f61367a35
|
|
| BLAKE2b-256 |
f2cf66cd083d53064dd22bc4f8aa928f110cf47003eb13525f255851517be007
|