Nike-Inc / gimme-aws-creds

A CLI that utilizes Okta IdP via SAML to acquire temporary AWS credentials
Apache License 2.0
925 stars 263 forks source link

Autocomplete #379

Closed jcreyf closed 1 year ago

jcreyf commented 1 year ago

Description

This implements and installs zsh/bash shell autocompletion for the gimme-aws-creds CLI.

Related Issue

Feature request: https://github.com/Nike-Inc/gimme-aws-creds/issues/376

Motivation and Context

Autocomplete is reducing the guess work when constructing the command and reduces the risk for typos. It also saves time since you're typing less. It shows which arguments are supported and auto-completes them. It also shows supported values for arguments that have selectable values (--output-format, --profile). This feature fetches and presents profiles from the .okta_aws_login_config file.

How Has This Been Tested?

I tested this on both Linux and Mac laptops. Both use Anaconda environments.

Screenshots (if appropriate):

Types of changes

Checklist: