99designs / aws-vault

A vault for securely storing and accessing AWS credentials in development environments
MIT License
8.52k stars 821 forks source link

Add a command to generate completion scripts #1209

Open whi-tw opened 1 year ago

whi-tw commented 1 year ago

Rather than directing people to download a file, which could end up out of sync if the upstream version changes, instead bundle the scripts into the binary and add a command to output them.

//go:embed requires the files to be in a descendant directory of the file containing the directive, so move them into a subdirectory, and symlink them back to the original locations so that people can still use the legacy method