Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_razor-2.27.45.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aws_razor-2.27.45-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

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

Hashes for aws_razor-2.27.45.tar.gz
Algorithm Hash digest
SHA256 d2acda440d6d9ff3b5cfebebdd8f193cb8acd225bbfd1d574559e9ce3691921f
MD5 da3afde1a025ad18731c91b987cc2815
BLAKE2b-256 444eed3169f19b3bcb9876b74f23200590a3284ae0fefcdeb7aa6141f0ce66e9

See more details on using hashes here.

File details

Details for the file aws_razor-2.27.45-py3-none-any.whl.

File metadata

File hashes

Hashes for aws_razor-2.27.45-py3-none-any.whl
Algorithm Hash digest
SHA256 c0f948d7d80986cad70623d4f6e3868fa240c01352f062e10235c95f7c1667b6
MD5 f0478b1e3fcec69b82d50e0f61367a35
BLAKE2b-256 f2cf66cd083d53064dd22bc4f8aa928f110cf47003eb13525f255851517be007

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page